Skip to content

How to get the PATH from working directory #5333

Closed Answered by bentsherman
mudymudy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mudymudy , I think the best way would be to pass the gffFiles directly into the fastaDatabase and use the stageAs option to stage them as a directory:

process fastaDatabase {
  input:
  path gffFiles, stageAs: 'gff/*'

  // ...

  script:
  """
  parsing_and_contatenating.py gff
  """
}

workflow {
  // ...
  fastaDatabase(unzipFiles.out.gffFiles)
}

If you put your scripts in the bin directory instead of scripts, make the script executable, and add a shebang to the top of the python script, you can call the python script directly as shown above (docs).

By the way, if you ever have questions like this you can also go to https://community.seqera.io/, there are a lot more people who can …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mudymudy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants