bccdc-phl / mlst-nf Goto Github PK
View Code? Open in Web Editor NEWRun mlst on multiple samples with integrated quality control.
Run mlst on multiple samples with integrated quality control.
Quast will fail when given assemblies with no contig greater than 500bp, which causes the pipeline to fail. One poor-quality sample could crash a full run, so it would make the overall pipeline more robust if we can prevent the pipeline from crashing in the presence of a single low-quality sample.
There are cases where we run this pipeline on the outputs of another pipeline (generally BCCDC-PHL/routine-assembly. That pipeline may already perform QC on its outputs, so running essentially the same QC on the inputs of this pipeline would be redundant.
Add a --skip_input_qc
flag that causes the QUAST analysis on the input assemblies to be skipped.
The versioned_outdir
param hasn't proven to be useful, and it clutters up our publishDir
directives.
Remove the versioned_outdir
param.
The pipeline version as stated by the manifest here:
Line 4 in 58a3697
...is out of sync with our tagged releases as listed here:
We currently only generate a separate output directory for each sample. But it would be convenient to collect the sequence types for all samples into a single .csv file as well. The user should be able to specify a prefix for the collected outputs, using a --collected_outputs_prefix
flag, whose default value is collected
.
Update the provenance data collected by this pipeline to match out pipeline provenance schema
Command error:
Traceback (most recent call last):
File "/home/dfornika/.nextflow/assets/BCCDC-PHL/mlst-nf/bin/parse_alleles.py", line 78, in <module>
main(args)
File "/home/dfornika/.nextflow/assets/BCCDC-PHL/mlst-nf/bin/parse_alleles.py", line 29, in main
num_alleles = len(mlst[sample]['alleles'])
TypeError: object of type 'NoneType' has no len()
json output from mlst was:
{
"sample-X.fa" : {
"scheme" : "-",
"sequence_type" : "-",
"alleles" : null,
"filename" : "sample-X.fa"
}
}
Add a testing workflow using GitHub actions
Our tests are currently failing because the provenance files produced by this pipeline don't match our schema
Update the provenance format to match the schema.
Pull in the latest version of mlst
In anticipation of integrating with tools and platforms like Sequera Platform we'd like to evaluate what would be necessary to adopt the nf-core conventions for our existing pipelines. Since this is a fairly simple pipeline, it's a good candidate for conversion to nf-core.
The pipeline currently creates one output directory per sample and publishes all outputs there. eg:
Line 5 in 9f0e0f0
When combining this pipeline with others, it may be useful to encapsulate the outputs from this pipeline in a sub-directory that is named with the pipeline name and version.
So by default we would create outputs of this structure:
.
├── sample-01
│ ├── sample-01_alleles.csv
│ └── sample-01_sequence_type.csv
├── sample-02
│ ├── sample-02_alleles.csv
│ └── sample-02_sequence_type.csv
└── sample-03
├── sample-03_alleles.csv
└── sample-03_sequence_type.csv
...but when running with a --versioned_outdir
flag , we would produce:
.
├── sample-01
│ └── mlst-nf-v0.1-output
│ ├── sample-01_alleles.csv
│ └── sample-01_sequence_type.csv
├── sample-02
│ └── mlst-nf-v0.1-output
│ ├── sample-01_alleles.csv
│ └── sample-01_sequence_type.csv
└── sample-03
└── mlst-nf-v0.1-output
├── sample-01_alleles.csv
└── sample-01_sequence_type.csv
...then a subsequent analysis could produce similar outputs alongside:
.
├── sample-01
│ ├── mlst-nf-v0.1-output
│ │ └── sample-01_mlst.csv
│ └── routine-assembly-v0.2-output
│ ├── sample-01_bakta.gbk
│ └── sample-01_unicycler.fa
├── sample-02
│ ├── mlst-nf-v0.1-output
│ │ └── sample-02_mlst.csv
│ └── routine-assembly-v0.2-output
│ ├── sample-02_bakta.gbk
│ └── sample-02_unicycler.fa
└── sample-03
├── mlst-nf-v0.1-output
│ └── sample-03_mlst.csv
└── routine-assembly-v0.2-output
├── sample-03_bakta.gbk
└── sample-03_unicycler.fa
We should QC incoming data by running quast on input assemblies.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.