-
Notifications
You must be signed in to change notification settings - Fork 36
General refactor and format #142
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
base: dev
Are you sure you want to change the base?
Conversation
|
conf/base.config
Outdated
cpus = { 1 * task.attempt } | ||
memory = { 6.GB * task.attempt } | ||
time = { 4.h * task.attempt } | ||
cpus = { 1 * task.attempt } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you've done here, and I'm fine with it. There is a general approach that people seem to like anf that the template generates that the equals sighs are vertical.
tuple val(meta), path('*d.out.bam') , emit: bam | ||
tuple val(meta), path('*Log.final.out') , emit: log_final | ||
tuple val(meta), path('*Log.out') , emit: log_out | ||
tuple val(meta), path('*d.out.bam'), emit: bam | ||
tuple val(meta), path('*Log.final.out'), emit: log_final | ||
tuple val(meta), path('*Log.out'), emit: log_out | ||
tuple val(meta), path('*Log.progress.out'), emit: log_progress | ||
path "versions.yml" , emit: versions | ||
path "versions.yml", emit: versions | ||
|
||
tuple val(meta), path('*sortedByCoord.out.bam') , optional:true, emit: bam_sorted | ||
tuple val(meta), path('*sortedByCoord.out.bam'), optional: true, emit: bam_sorted | ||
// tuple val(meta), path('*toTranscriptome.out.bam'), optional:true, emit: bam_transcript | ||
tuple val(meta), path('*Aligned.unsort.out.bam') , optional:true, emit: bam_unsorted | ||
tuple val(meta), path('*fastq.gz') , optional:true, emit: fastq | ||
tuple val(meta), path('*.tab') , optional:true, emit: tab | ||
tuple val(meta), path('*.out.junction') , optional:true, emit: junction | ||
tuple val(meta), path('*.out.sam') , optional:true, emit: sam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can see here why they vertically align the outputs - when there's lots, it does become easier to read.
@@ -115,14 +112,18 @@ params { | |||
// -------------- | |||
libtype = 'A' | |||
// gene_feature_gff_to_create_transcriptome_host = ["exon"] // old | |||
gene_feature_gff_to_create_transcriptome_host = "exon" // new | |||
gene_feature_gff_to_create_transcriptome_host = "exon" | |||
// new | |||
gene_attribute_gff_to_create_transcriptome_host = "transcript_id" | |||
// gene_feature_gff_to_create_transcriptome_pathogen = ["gene", "sRNA", "tRNA", "rRNA"] //old |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If yo are wondering why there are a bunch of these comments that I've commented out and left. I've kept them in until all three tools successfully run and the output looks reliable. Otherwise if something isn't quite correct somewhere, these are a quick reference point
nextflow.config
Outdated
quantMode = 'TranscriptomeSAM' // Create a transcriptome Bam (to use with Salmon) - also generates a genome bam (use with STAR genome alignment) | ||
quantTranscriptomeBan = 'Singleend' // Regarding transcriptome alignments - allowing for insertions, deletions and soft-clips (Singleend option). To prohibit this behaviour, specify IndelSoftclipSingleend | ||
limitBAMsortRAM = 0 // Option to limit RAM when sorting BAM file. If 0, will be set to the genome index size, which can be quite large when running on a desktop or laptop | ||
outSAMunmapped = 'Within' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to shift all these comments to above the param?
}, | ||
"pathogen_organism": { | ||
"type": "string", | ||
"description": "Change to custom name if desired, ie Salmonella_SL1344", | ||
"fa_icon": "far fa-file" | ||
"fa_icon": "far fa-file", | ||
"default": "pathogen" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above - unless I'm missing something obvious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these 2 were caught by the linter nf-core pipelines schema lint
as not having defaults in the schema but they are actually set with default values in the config already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to tick the last file
I thought I'd have to tick (viewed) on all files before approving - good to know |
grand, not sure why but all of my replies got marked as reviews |
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.2.0. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Overview
everything still runs
PR checklist
scrape_software_versions.py
nf-core lint .
).nextflow run . -profile test,docker
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).