wgsim.cr v0.0.10
wgsim.cr
Reimplement wgsim in Crystal and add extra features.
:yarn: :black_cat: Please note that this project is being created for personal study and experimental purposes and is not currently provided for practical purposes.
mut: Adding mutations to the reference genome- SNPs
- Insertion (any length)
- Deletion (any length)
- Fasta Output
seq: Simulation of short-read sequencing- Uniform substitution sequencing errors
- Fastq Output
gen: Generate a random genome- Random genome generation
- Fasta Output
Installation
Compiling from source code
git clone https://github.com/kojix2/wgsim.cr
cd wgsim.cr
shards build --release
Homebrew
brew install kojix2/brew/wgsim
Usage
Program: wgsim (Crystal implementation of wgsim)
Version: 0.0.9.alpha
Source: https://github.com/kojix2/wgsim.cr
mut Add biological mutations to reference sequences
seq Simulate paired-end sequencing reads
gen Generate random reference FASTA
--debug Show backtrace on error
-v, --version Show version
-h, --help Show this help
About: Add biological mutations to reference sequences
Usage: wgsim mut [options] -r <in.ref.fa> -o <out.fa> -l <out.tsv>
-r, --reference FILE Input reference FASTA (required)
-o, --mutated-fasta FILE Output mutated FASTA (required)
-l, --mutation-log FILE Output mutation event log TSV (required)
-s, --sub-rate FLOAT Per-base substitution probability [0.001]
-i, --ins-rate FLOAT Per-base insertion probability [0.0001]
-d, --del-rate FLOAT Per-base deletion-start probability [0.0001]
-I, --ins-extend FLOAT Probability of extending an insertion by one base [0.3]
-D, --del-extend FLOAT Probability of extending an open deletion by one base [0.3]
-p, --ploidy UINT8 Number of mutated chromosome copies per input sequence [2]
-S, --seed UINT64 Random seed
--debug Show backtrace on error
-h, --help Show this help
About: Simulate paired-end sequencing reads
Usage: wgsim seq [options] -r <in.ref.fa> -1 <out.read1.fq> -2 <out.read2.fq>
-r, --reference FILE Input reference FASTA (required)
-1, --read1-fastq FILE Output FASTQ for read 1 (required)
-2, --read2-fastq FILE Output FASTQ for read 2 (required)
-e, --error-rate FLOAT Per-base sequencing error probability [0.01]
-m, --mean-insert INT Mean insert size [500]
-s, --insert-sd FLOAT Insert size standard deviation [50]
-D, --depth FLOAT Average sequencing depth [10.0]
-L, --read1-len INT Read 1 length [100]
-R, --read2-len INT Read 2 length [100]
-A, --max-n-ratio FLOAT Discard a read pair if either read has a higher N fraction [0.05]
-S, --seed UINT64 Random seed
--debug Show backtrace on error
-h, --help Show this help
About: Generate random reference FASTA
Usage: wgsim gen [options]
-l, --chromosome-lengths INT Comma-separated chromosome lengths ["1000,500"]
-S, --seed UINT64 Random seed
--debug Show backtrace on error
-h, --help Show this help
Documentation
Development
Dependencies:
- kojix2/randn.cr - Normal random number generator.
- bio-cr/fastx.cr - FASTA/FASTQ reader and writer.
Multithreaded execution is not implemented. Do not build with -Dpreview_mt expecting parallel mut, seq, or gen processing.
Contributing
- Fork it (https://github.com/kojix2/wgsim/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Repository
wgsim.cr
Owner
Statistic
- 0
- 0
- 3
- 0
- 3
- about 1 month ago
- January 14, 2024
License
MIT License
Links
Synced at
Fri, 26 Jun 2026 08:07:33 GMT
Languages