Skip to content

Conversation

@avantonder
Copy link
Contributor

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/bactmap branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

Copy link

@Joon-Klaps Joon-Klaps left a comment

Choose a reason for hiding this comment

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

Very nice work, no major comments. Only suggestions.

make_dir(out_dir)

## Create list of fastq-scan json files
json_files = sorted(glob.glob('*.json'))

Choose a reason for hiding this comment

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

nitpicking
I think it would be better if you were to ask for an input dir in args and search there for json files instead of working dir.

Comment on lines +62 to +65
raw_json_files = sorted(glob.glob('*.raw.json'))

## Create list of processed reads fastq-scan json files
processed_json_files = sorted(glob.glob('*.processed.json'))

Choose a reason for hiding this comment

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

nitpicking... again sorry
Same here, think it would be better if you were to ask for input params & use in nextflow the stageAs.

Comment on lines +52 to +58
{ assert snapshot(
process.out.vcf.collect { file(it[1]).getName() },
process.out.tbi.collect { file(it[1]).getName() },
process.out.versions,
process.out.phased_vcf.collect { file(it[1]).getName() },
process.out.phased_tbi.collect { file(it[1]).getName() }).match()}
)

Choose a reason for hiding this comment

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

I'm guessing it's not stable due to the vcf header?
Might be interesting to use nft-vcf plugin with it's function .variantsMD5

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how to address this. This was the original main.nf.test from nf-core.

Comment on lines +56 to +57
process.out.phased_vcf.collect { file(it[1]).getName() },
process.out.phased_tbi.collect { file(it[1]).getName() }).match()}

Choose a reason for hiding this comment

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

phased_vcf & phased_tbi their names are not stored in snapshot. It's an empty array.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how to address this. This was the original main.nf.test from nf-core.

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.

10 participants