circrna
circrna copied to clipboard
[Do not merge!] Pseudo PR for first release
Do not merge! This is a PR of dev compared to first release for whole-pipeline reviewing purposes.
Comments can be copied over to #66 for safety if necessary and changes made there. Changes should be made to dev and this PR should not be merged into first-commit-for-pseudo-pr!
Python linting (black) is failing
To keep the code consistent with lots of contributors, we run automated code consistency checks. To fix this CI test, please run:
- Install
black:pip install black - Fix formatting errors in your pipeline:
black .
Once you push these changes the test should pass, and you can hide this comment :+1:
We highly recommend setting up Black in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help!
Thanks again for your contribution!
Hi @jfy133 & @FriederikeHanssen
I've managed to implement most of the suggestions, I'll address what's not going so smoothly below.
These two things are going to cause linting to fail, the second is really hindering the bam qc, multiqc config suggestions you provided.
Pretty confident I can do everything else out once these are knocked on the head! 🙏🏼
1. Python black
(nf-core) barry@YT-1300:/data/github/circrna$ black ./
All done! ✨ 🍰 ✨
3 files left unchanged.
It still complains about the bin/check_samplesheet.py file?
2. Ill formatted HEREDOC (versions.yml)
Genuinely cannot find the root cause of these improperly formatted versions.yml outputs, I've wasted a decent amount of time on this 🤢
nextflow pull -r dev nf-core/circrna
nextflow run -r dev nf-core/circrna -profile test,docker --module 'circrna_discovery,differentail_expression'
The MultiQC modules fails because the versions.yml file from NFCORE_CIRCRNA:CIRCRNA:DIFFERENTIAL_EXPRESSION:STRINGTIE_PREPDE is not properly formatted:
"NFCORE_CIRCRNA:CIRCRNA:DIFFERENTIAL_EXPRESSION:STRINGTIE_PREPDE":
stringtie: 2.2.1
END_VERSIONS
Process code 👇🏼
process STRINGTIE_PREPDE {
label 'process_low'
conda "bioconda::stringtie=2.2.1"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/stringtie:2.2.1--hecb563c_2' :
'quay.io/biocontainers/stringtie:2.2.1--hecb563c_2' }"
input:
path gtf
output:
path "transcript_count_matrix.csv" , emit: transcript_matrix
path "gene_count_matrix.csv" , emit: gene_matrix
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
"""
for file in \$(ls *.gtf); do sample_id=\${file%".transcripts.gtf"}; touch samples.txt; printf "\$sample_id\t\$file\n" >> samples.txt ; done
prepDE.py -i samples.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
stringtie: \$(stringtie --version 2>&1)
END_VERSIONS
"""
}
I'm running into this same issue for the CIRIquant module I'm adding to nf-core modules:
git clone [email protected]:nf-core/modules.git
cd modules
git checkout ciriquant
export PROFILE='docker'
nextflow run ./tests/modules/nf-core/ciriquant -entry test_ciriquant -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/ciriquant/nextflow.config --outdir ciriquant_test/
cat ciriquant_test/ciriquant/versions.yml
"test_ciriquant:CIRIQUANT":
ciriquant: 1.1.2
END_VERSIONS
I've tried defining $VERSION to no avail.
Process code 👇🏼
process CIRIQUANT {
tag "$meta.id"
label 'process_high'
conda "bioconda::ciriquant=1.1.2"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/ciriquant:1.1.2--pyhdfd78af_2' :
'quay.io/biocontainers/ciriquant:1.1.2--pyhdfd78af_2' }"
input:
tuple val(meta), path(reads)
path gtf
path fasta
path bwa
path hisat2
output:
tuple val(meta), path("${prefix}/${prefix}.gtf"), emit: gtf
path("${prefix}") , optional: true, emit: intermediates_directory
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"
bwa_prefix = fasta.toString() == 'genome.fa' ? fasta.toString() : fasta.toString() - ~/.(fa|fasta)$/
hisat2_prefix = fasta.toString() - ~/.(fa|fasta)$/
fasta_path = fasta.toRealPath()
gtf_path = gtf.toRealPath()
bwa_path = bwa.toRealPath()
hisat2_path = hisat2.toRealPath()
"""
BWA=`which bwa`
HISAT2=`which hisat2`
STRINGTIE=`which stringtie`
SAMTOOLS=`which samtools`
touch travis.yml
printf "name: ciriquant\ntools:\n bwa: \$BWA\n hisat2: \$HISAT2\n stringtie: \$STRINGTIE\n samtools: \$SAMTOOLS\n\nreference:\n fasta: ${fasta_path}\n gtf: ${gtf_path}\n bwa_index: ${bwa_path}/${bwa_prefix}\n hisat_index: ${hisat2_path}/${hisat2_prefix}" >> travis.yml
CIRIquant \\
-t ${task.cpus} \\
-1 ${reads[0]} \\
-2 ${reads[1]} \\
--config travis.yml \\
-o ${prefix} \\
-p ${prefix} \\
$args
cat <<-END_VERSIONS > versions.yml
"${task.process}":
ciriquant: \$(echo \$(CIRIquant --version 2>&1) | sed 's/CIRIquant //g' )
END_VERSIONS
"""
}
This is slowing me down w.r.t implementing some BAM QC modules and fixing up my final MultiQC file.
@BarryDigby awk version not printing in ANNOTATION (busybox container)
sh-5.0# awk
BusyBox v1.32.1 (2021-04-13 11:15:36 UTC) multi-call binary.
Usage: awk [OPTIONS] [AWK_PROGRAM] [FILE]...
-v VAR=VAL Set variable
-F SEP Use SEP as field separator
-f FILE Read program from FILE
-e AWK_PROGRAM
Re. busybox unix tool versions: https://stackoverflow.com/questions/75383910/how-to-print-unix-tool-version-in-busybox-container/75385994#75385994
Is this kosher?
Re. busybox unix tool versions: https://stackoverflow.com/questions/75383910/how-to-print-unix-tool-version-in-busybox-container/75385994#75385994
Is this kosher?
Good quesiotn, not sure. Maybe one to ask on slack...
nf-core lint overall result: Passed :white_check_mark: :warning:
Posted for pipeline commit f96729c
+| ✅ 249 tests passed |+
!| ❗ 1 tests had warnings |!
:heavy_exclamation_mark: Test warnings:
- readme - README contains the placeholder
zenodo.XXXXXXX. This should be replaced with the zenodo doi (after the first release).
:white_check_mark: Tests passed:
- files_exist - File found:
.gitattributes - files_exist - File found:
.gitignore - files_exist - File found:
.nf-core.yml - files_exist - File found:
.editorconfig - files_exist - File found:
.prettierignore - files_exist - File found:
.prettierrc.yml - files_exist - File found:
CHANGELOG.md - files_exist - File found:
CITATIONS.md - files_exist - File found:
CODE_OF_CONDUCT.md - files_exist - File found:
LICENSEorLICENSE.mdorLICENCEorLICENCE.md - files_exist - File found:
nextflow_schema.json - files_exist - File found:
nextflow.config - files_exist - File found:
README.md - files_exist - File found:
.github/.dockstore.yml - files_exist - File found:
.github/CONTRIBUTING.md - files_exist - File found:
.github/ISSUE_TEMPLATE/bug_report.yml - files_exist - File found:
.github/ISSUE_TEMPLATE/config.yml - files_exist - File found:
.github/ISSUE_TEMPLATE/feature_request.yml - files_exist - File found:
.github/PULL_REQUEST_TEMPLATE.md - files_exist - File found:
.github/workflows/branch.yml - files_exist - File found:
.github/workflows/ci.yml - files_exist - File found:
.github/workflows/linting_comment.yml - files_exist - File found:
.github/workflows/linting.yml - files_exist - File found:
assets/email_template.html - files_exist - File found:
assets/email_template.txt - files_exist - File found:
assets/sendmail_template.txt - files_exist - File found:
assets/nf-core-circrna_logo_light.png - files_exist - File found:
conf/modules.config - files_exist - File found:
conf/test.config - files_exist - File found:
conf/test_full.config - files_exist - File found:
docs/images/nf-core-circrna_logo_light.png - files_exist - File found:
docs/images/nf-core-circrna_logo_dark.png - files_exist - File found:
docs/output.md - files_exist - File found:
docs/README.md - files_exist - File found:
docs/README.md - files_exist - File found:
docs/usage.md - files_exist - File found:
main.nf - files_exist - File found:
assets/multiqc_config.yml - files_exist - File found:
conf/base.config - files_exist - File found:
conf/igenomes.config - files_exist - File found:
.github/workflows/awstest.yml - files_exist - File found:
.github/workflows/awsfulltest.yml - files_exist - File found:
modules.json - files_exist - File not found check:
.github/ISSUE_TEMPLATE/bug_report.md - files_exist - File not found check:
.github/ISSUE_TEMPLATE/feature_request.md - files_exist - File not found check:
.github/workflows/push_dockerhub.yml - files_exist - File not found check:
.markdownlint.yml - files_exist - File not found check:
.nf-core.yaml - files_exist - File not found check:
.yamllint.yml - files_exist - File not found check:
bin/markdown_to_html.r - files_exist - File not found check:
conf/aws.config - files_exist - File not found check:
docs/images/nf-core-circrna_logo.png - files_exist - File not found check:
lib/Checks.groovy - files_exist - File not found check:
lib/Completion.groovy - files_exist - File not found check:
lib/NfcoreTemplate.groovy - files_exist - File not found check:
lib/Utils.groovy - files_exist - File not found check:
lib/Workflow.groovy - files_exist - File not found check:
lib/WorkflowMain.groovy - files_exist - File not found check:
lib/WorkflowCircrna.groovy - files_exist - File not found check:
parameters.settings.json - files_exist - File not found check:
pipeline_template.yml - files_exist - File not found check:
Singularity - files_exist - File not found check:
lib/nfcore_external_java_deps.jar - files_exist - File not found check:
.travis.yml - nextflow_config - Config variable found:
manifest.name - nextflow_config - Config variable found:
manifest.nextflowVersion - nextflow_config - Config variable found:
manifest.description - nextflow_config - Config variable found:
manifest.version - nextflow_config - Config variable found:
manifest.homePage - nextflow_config - Config variable found:
timeline.enabled - nextflow_config - Config variable found:
trace.enabled - nextflow_config - Config variable found:
report.enabled - nextflow_config - Config variable found:
dag.enabled - nextflow_config - Config variable found:
process.cpus - nextflow_config - Config variable found:
process.memory - nextflow_config - Config variable found:
process.time - nextflow_config - Config variable found:
params.outdir - nextflow_config - Config variable found:
params.input - nextflow_config - Config variable found:
params.validationShowHiddenParams - nextflow_config - Config variable found:
params.validationSchemaIgnoreParams - nextflow_config - Config variable found:
manifest.mainScript - nextflow_config - Config variable found:
timeline.file - nextflow_config - Config variable found:
trace.file - nextflow_config - Config variable found:
report.file - nextflow_config - Config variable found:
dag.file - nextflow_config - Config variable (correctly) not found:
params.nf_required_version - nextflow_config - Config variable (correctly) not found:
params.container - nextflow_config - Config variable (correctly) not found:
params.singleEnd - nextflow_config - Config variable (correctly) not found:
params.igenomesIgnore - nextflow_config - Config variable (correctly) not found:
params.name - nextflow_config - Config variable (correctly) not found:
params.enable_conda - nextflow_config - Config
timeline.enabledhad correct value:true - nextflow_config - Config
report.enabledhad correct value:true - nextflow_config - Config
trace.enabledhad correct value:true - nextflow_config - Config
dag.enabledhad correct value:true - nextflow_config - Config
manifest.namebegan withnf-core/ - nextflow_config - Config variable
manifest.homePagebegan with https://github.com/nf-core/ - nextflow_config - Config
dag.fileended with.html - nextflow_config - Config variable
manifest.nextflowVersionstarted with >= or !>= - nextflow_config - Config
manifest.versionends indev:dev - nextflow_config - Config
params.custom_config_versionis set tomaster - nextflow_config - Config
params.custom_config_baseis set tohttps://raw.githubusercontent.com/nf-core/configs/master - nextflow_config - Lines for loading custom profiles found
- nextflow_config - nextflow.config contains configuration profile
test - nextflow_config - Config default value correct: params.tools= circexplorer2
- nextflow_config - Config default value correct: params.bsj_reads= 1
- nextflow_config - Config default value correct: params.max_shift= 1
- nextflow_config - Config default value correct: params.min_tools= 1
- nextflow_config - Config default value correct: params.min_samples= 1
- nextflow_config - Config default value correct: params.exon_boundary= 0
- nextflow_config - Config default value correct: params.quantification_tools= ciriquant,psirc
- nextflow_config - Config default value correct: params.bootstrap_samples= 30
- nextflow_config - Config default value correct: params.mirna_min_sample_percentage= 0.2
- nextflow_config - Config default value correct: params.mirna_min_reads= 5
- nextflow_config - Config default value correct: params.mirna_correlation= pearson
- nextflow_config - Config default value correct: params.mirna_tools= miranda,targetscan
- nextflow_config - Config default value correct: params.mirna_min_tools= 1
- nextflow_config - Config default value correct: params.sjdboverhang= 100
- nextflow_config - Config default value correct: params.chimJunctionOverhangMin= 10
- nextflow_config - Config default value correct: params.alignSJDBoverhangMin= 10
- nextflow_config - Config default value correct: params.limitSjdbInsertNsj= 1000000
- nextflow_config - Config default value correct: params.chimSegmentMin= 10
- nextflow_config - Config default value correct: params.seglen= 25
- nextflow_config - Config default value correct: params.min_intron= 20
- nextflow_config - Config default value correct: params.max_intron= 1000000
- nextflow_config - Config default value correct: params.min_map_len= 40
- nextflow_config - Config default value correct: params.min_fusion_distance= 200
- nextflow_config - Config default value correct: params.save_unaligned= false
- nextflow_config - Config default value correct: params.save_reference= true
- nextflow_config - Config default value correct: params.hisat2_build_memory= 200.GB
- nextflow_config - Config default value correct: params.skip_trimming= false
- nextflow_config - Config default value correct: params.save_trimmed= false
- nextflow_config - Config default value correct: params.skip_fastqc= false
- nextflow_config - Config default value correct: params.min_trimmed_reads= 10000
- nextflow_config - Config default value correct: params.custom_config_version= master
- nextflow_config - Config default value correct: params.custom_config_base= https://raw.githubusercontent.com/nf-core/configs/master
- nextflow_config - Config default value correct: params.max_cpus= 50
- nextflow_config - Config default value correct: params.max_memory= 300.GB
- nextflow_config - Config default value correct: params.max_time= 240.h
- nextflow_config - Config default value correct: params.save_intermediates= false
- nextflow_config - Config default value correct: params.publish_dir_mode= copy
- nextflow_config - Config default value correct: params.max_multiqc_email_size= 25.MB
- nextflow_config - Config default value correct: params.validate_params= true
- files_unchanged -
.gitattributesmatches the template - files_unchanged -
.prettierrc.ymlmatches the template - files_unchanged -
CODE_OF_CONDUCT.mdmatches the template - files_unchanged -
LICENSEmatches the template - files_unchanged -
.github/.dockstore.ymlmatches the template - files_unchanged -
.github/CONTRIBUTING.mdmatches the template - files_unchanged -
.github/ISSUE_TEMPLATE/bug_report.ymlmatches the template - files_unchanged -
.github/ISSUE_TEMPLATE/config.ymlmatches the template - files_unchanged -
.github/ISSUE_TEMPLATE/feature_request.ymlmatches the template - files_unchanged -
.github/PULL_REQUEST_TEMPLATE.mdmatches the template - files_unchanged -
.github/workflows/branch.ymlmatches the template - files_unchanged -
.github/workflows/linting_comment.ymlmatches the template - files_unchanged -
.github/workflows/linting.ymlmatches the template - files_unchanged -
assets/email_template.htmlmatches the template - files_unchanged -
assets/email_template.txtmatches the template - files_unchanged -
assets/sendmail_template.txtmatches the template - files_unchanged -
assets/nf-core-circrna_logo_light.pngmatches the template - files_unchanged -
docs/images/nf-core-circrna_logo_light.pngmatches the template - files_unchanged -
docs/images/nf-core-circrna_logo_dark.pngmatches the template - files_unchanged -
docs/README.mdmatches the template - files_unchanged -
.gitignorematches the template - files_unchanged -
.prettierignorematches the template - actions_ci - '.github/workflows/ci.yml' is triggered on expected events
- actions_ci - '.github/workflows/ci.yml' checks minimum NF version
- actions_awstest - '.github/workflows/awstest.yml' is triggered correctly
- actions_awsfulltest -
.github/workflows/awsfulltest.ymlis triggered correctly - actions_awsfulltest -
.github/workflows/awsfulltest.ymldoes not use-profile test - readme - README Nextflow minimum version badge matched config. Badge:
23.04.0, Config:23.04.0 - pipeline_todos - No TODO strings found
- pipeline_name_conventions - Name adheres to nf-core convention
- template_strings - Did not find any Jinja template strings (429 files)
- schema_lint - Schema lint passed
- schema_lint - Schema title + description lint passed
- schema_lint - Input mimetype lint passed: 'text/csv'
- schema_params - Schema matched params returned from nextflow config
- system_exit - No
System.exitcalls found - actions_schema_validation - Workflow validation passed: ci.yml
- actions_schema_validation - Workflow validation passed: awsfulltest.yml
- actions_schema_validation - Workflow validation passed: linting_comment.yml
- actions_schema_validation - Workflow validation passed: release-announcements.yml
- actions_schema_validation - Workflow validation passed: linting.yml
- actions_schema_validation - Workflow validation passed: download_pipeline.yml
- actions_schema_validation - Workflow validation passed: awstest.yml
- actions_schema_validation - Workflow validation passed: clean-up.yml
- actions_schema_validation - Workflow validation passed: fix-linting.yml
- actions_schema_validation - Workflow validation passed: branch.yml
- merge_markers - No merge markers found in pipeline files
- modules_json - Only installed modules found in
modules.json - multiqc_config -
assets/multiqc_config.ymlfound and not ignored. - multiqc_config -
assets/multiqc_config.ymlcontainsreport_section_order - multiqc_config -
assets/multiqc_config.ymlcontainsexport_plots - multiqc_config -
assets/multiqc_config.ymlcontainsreport_comment - multiqc_config -
assets/multiqc_config.ymlfollows the ordering scheme of the minimally required plugins. - multiqc_config -
assets/multiqc_config.ymlcontains a matching 'report_comment'. - multiqc_config -
assets/multiqc_config.ymlcontains 'export_plots: true'. - modules_structure - modules directory structure is correct 'modules/nf-core/TOOL/SUBTOOL'
- base_config -
conf/base.configfound and not ignored. - modules_config -
conf/modules.configfound and not ignored. - modules_config -
CUSTOM_DUMPSOFTWAREVERSIONSfound inconf/modules.configand Nextflow scripts. - modules_config -
CAT_FASTQfound inconf/modules.configand Nextflow scripts. - modules_config -
SAMTOOLS_FAIDXfound inconf/modules.configand Nextflow scripts. - modules_config -
CLEAN_FASTAfound inconf/modules.configand Nextflow scripts. - modules_config -
GTFFILTERfound inconf/modules.configand Nextflow scripts. - modules_config -
SEQKIT_SPLITfound inconf/modules.configand Nextflow scripts. - modules_config -
BOWTIE_BUILDfound inconf/modules.configand Nextflow scripts. - modules_config -
BOWTIE2_BUILDfound inconf/modules.configand Nextflow scripts. - modules_config -
BWA_INDEXfound inconf/modules.configand Nextflow scripts. - modules_config -
HISAT2_EXTRACTSPLICESITESfound inconf/modules.configand Nextflow scripts. - modules_config -
HISAT2_BUILDfound inconf/modules.configand Nextflow scripts. - modules_config -
STAR_GENOMEGENERATEfound inconf/modules.configand Nextflow scripts. - modules_config -
FILTER_BSJSfound inconf/modules.configand Nextflow scripts. - modules_config -
EXTRACT_COUNTSfound inconf/modules.configand Nextflow scripts. - modules_config -
COMBINE_COUNTS_PER_TOOLfound inconf/modules.configand Nextflow scripts. - modules_config -
BED_ADD_SAMPLE_TOOLfound inconf/modules.configand Nextflow scripts. - modules_config -
COMBINE_TOOLS_PER_SAMPLEfound inconf/modules.configand Nextflow scripts. - modules_config -
COMBINE_SAMPLESfound inconf/modules.configand Nextflow scripts. - modules_config -
FASTA_COMBINEDfound inconf/modules.configand Nextflow scripts. - modules_config -
FASTA_PER_SAMPLEfound inconf/modules.configand Nextflow scripts. - modules_config -
FASTA_PER_SAMPLE_TOOLfound inconf/modules.configand Nextflow scripts. - modules_config -
ADD_BACKSPLICEfound inconf/modules.configand Nextflow scripts. - modules_config -
UNIFY_MIRANDAfound inconf/modules.configand Nextflow scripts. - modules_config -
UNIFY_TARGETSCANfound inconf/modules.configand Nextflow scripts. - modules_config -
COMBINE_BINDINGSITESfound inconf/modules.configand Nextflow scripts. - modules_config -
COMBINE_TRANSCRIPTOME_GTFSfound inconf/modules.configand Nextflow scripts. - modules_config -
EXCLUDE_OVERLONG_TRANSCRIPTSfound inconf/modules.configand Nextflow scripts. - modules_config -
TRANSCRIPTOMEfound inconf/modules.configand Nextflow scripts. - modules_config -
MARK_CIRCULARfound inconf/modules.configand Nextflow scripts. - modules_config -
PSIRC_INDEXfound inconf/modules.configand Nextflow scripts. - modules_config -
RUN_PSIRC_QUANTfound inconf/modules.configand Nextflow scripts. - modules_config -
CUSTOM_TX2GENEfound inconf/modules.configand Nextflow scripts. - modules_config -
TXIMETA_TXIMETAfound inconf/modules.configand Nextflow scripts. - modules_config -
TXIMETA_TXIMPORTfound inconf/modules.configand Nextflow scripts. - modules_config -
MERGE_EXPERIMENTSfound inconf/modules.configand Nextflow scripts. - modules_config -
TARGETSCAN_DATABASEfound inconf/modules.configand Nextflow scripts. - modules_config -
TARGETSCANfound inconf/modules.configand Nextflow scripts. - modules_config -
MIRANDAfound inconf/modules.configand Nextflow scripts. - modules_config -
MIRNA_TARGETSfound inconf/modules.configand Nextflow scripts. - modules_config -
COMBINE_BINDINGSITESfound inconf/modules.configand Nextflow scripts. - modules_config -
MAJORITY_VOTEfound inconf/modules.configand Nextflow scripts. - modules_config -
CIRCTEST_PREPAREfound inconf/modules.configand Nextflow scripts. - modules_config -
CIRCTEST_CIRCTESTfound inconf/modules.configand Nextflow scripts. - modules_config -
CIRIQUANT_PREPDEfound inconf/modules.configand Nextflow scripts. - modules_config -
STRINGTIE_PREPDEfound inconf/modules.configand Nextflow scripts. - modules_config -
CIRIQUANT_DEfound inconf/modules.configand Nextflow scripts. - nfcore_yml - Repository type in
.nf-core.ymlis valid:pipeline - nfcore_yml - nf-core version in
.nf-core.ymlis set to the latest version:2.14.1
Run details
- nf-core/tools version 2.14.1
- Run at
2024-09-26 13:33:27