Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling cases in Nextflow #74

Merged
merged 6 commits into from
Dec 11, 2024
Merged

Conversation

kyrillosishak
Copy link
Contributor

@kyrillosishak kyrillosishak commented Nov 8, 2024

Cases that should PROBE handle when exporting Nextflow :

  • One Input, One Output

  • Multiple Inputs, One Output

  • Inline Commands: Inline commands that directly modify the input file (e.g., using sed, awk, or similar)

  • Chained Scripts: If a process node calls another script

  • No Input Command: Commands like ls .: Commands that don't take an explicit input file but generate output

  • Multiple Inputs, Multiple Outputs

  • Ensure that any environment variables or context-specific settings are captured and translated into the Nextflow environment

@@ -139,7 +235,16 @@ def create_processes(self) -> None:
inputs = [n for n in self.graph.predecessors(node) if isinstance(n, FileNode)]
outputs = [n for n in self.graph.successors(node) if isinstance(n, FileNode)]

if self.is_standard_case(node, inputs, outputs) :
# Skip any command that calls another script
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a more general way (in a different PR) of handing the case where process forks child processes than asking if the command was sh. There are many other commands that do this, make, bash, ..., any command could do this.

We should analyze this by the tree structure (later on).

@charmoniumQ charmoniumQ merged commit 194570c into charmoniumQ:main Dec 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants