ftarc
FASTQ-to-analysis-ready-CRAM Workflow Executor for Human Genome Sequencing
Installation
$ pip install -U ftarc
Dependent commands:
pigzpbzip2bgziptabixsamtools(andplot-bamstats)gnuplotjavagatkcutadaptfastqctrim_galorebwaorbwa-mem2
Docker image
Pull the image from Docker Hub.
$ docker image pull dceoy/ftarc
Usage
Create analysis-ready CRAM files from FASTQ files
| input files | output files |
|---|---|
| read1/read2 FASTQ (Illumina) | analysis-ready CRAM |
-
Download hg38 resource data.
$ ftarc download --dest-dir=/path/to/download/dir
-
Write input file paths and configurations into
ftarc.yml.$ ftarc init $ vi ftarc.yml # => edit
Example of
ftarc.yml:--- reference_name: hs38DH adapter_removal: true metrics_collectors: fastqc: true picard: true samtools: true resources: reference_fa: /path/to/GRCh38_full_analysis_set_plus_decoy_hla.fa known_sites_vcf: - /path/to/Homo_sapiens_assembly38.dbsnp138.vcf.gz - /path/to/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz - /path/to/Homo_sapiens_assembly38.known_indels.vcf.gz runs: - fq: - /path/to/sample01.WGS.R1.fq.gz - /path/to/sample01.WGS.R2.fq.gz - fq: - /path/to/sample02.WGS.R1.fq.gz - /path/to/sample02.WGS.R2.fq.gz - fq: - /path/to/sample03.WGS.R1.fq.gz - /path/to/sample03.WGS.R2.fq.gz read_group: ID: FLOWCELL-1 PU: UNIT-1 SM: sample03 PL: ILLUMINA LB: LIBRARY-1
-
Create analysis-ready CRAM files from FASTQ files
$ ftarc pipeline --yml=ftarc.yml --workers=2
Standard workflow:
- Trim adapters
trim_galore
- Map reads to a human reference genome
bwa mem(orbwa-mem2 mem)
- Mark duplicates
gatk MarkDuplicatesgatk SetNmMdAndUqTags
- Apply BQSR (Base Quality Score Recalibration)
gatk BaseRecalibratorgatk ApplyBQSR
- Remove duplicates
samtools view
- Validate output CRAM files
gatk ValidateSamFile
- Collect QC metrics
fastqcsamtoolsgatk
- Trim adapters
Preprocessing and QC-check
-
Validate BAM or CRAM files using Picard
$ ftarc validate /path/to/genome.fa /path/to/aligned.cram
-
Collect metrics from FASTQ files using FastQC
$ ftarc fastqc read1.fq.gz read2.fq.gz
-
Collect metrics from FASTQ files using FastQC
$ ftarc samqc /path/to/genome.fa /path/to/aligned.cram
-
Apply BQSR to BAM or CRAM files using GATK
$ ftarc bqsr \ --known-sites-vcf=/path/to/Homo_sapiens_assembly38.dbsnp138.vcf.gz \ --known-sites-vcf=/path/to/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz \ --known-sites-vcf=/path/to/Homo_sapiens_assembly38.known_indels.vcf.gz \ /path/to/genome.fa /path/to/markdup.cram
-
Remove duplicates in marked BAM or CRAM files
$ ftarc dedup /path/to/genome.fa /path/to/markdup.cram
Run ftarc --help for more information.
Metadata
Release files for ftarc 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ftarc-0.2.4.tar.gz | 23.4 kB | Without provenance | Details for ftarc-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ftarc-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for ftarc-0.2.4-py3-none-any.whl |
Total release size: 54.1 kB
Release files / ftarc-0.2.4.tar.gz
| Download URL | ftarc-0.2.4.tar.gz |
|---|---|
| Size | 23.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcf36aefebbae1c88112f97387b54f7ed8ced5ee4034f90a5e6c3230ad9c8ce5
|
|
BLAKE2b-256 checksum How to use checksums |
ec775da537a87b52eb61779590d9956c98fa976df960eac5b54e1fbea29dc080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
|
Release files / ftarc-0.2.4-py3-none-any.whl
| Download URL | ftarc-0.2.4-py3-none-any.whl |
|---|---|
| Size | 30.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f17230f737c105b115defdbd70618fdf0953da664cd5d21453eca318ecba2489
|
|
BLAKE2b-256 checksum How to use checksums |
ed41a63ebc081c5684f99a041930550cf40f40077e2ce300c5b218fd3de352e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
|
Security for ftarc 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.