Tools of stLFR(Single Tube Long Fragment Reads) data analysis
stLFR FAQs is directed to bgi-MGITech_Bioinfor@genomics.cn.
Download source code package from https://github.com/MGI-tech-bioinformatics/stLFR_v1.1
May 6, 2019 There are several updates in stLFR_v1.1 comparing with v1:
- Users could use an alternative reference type (hg19 or hs37d5) in stLFR_v1.1 by --ref option instead of only hg19.
- Updated CNV and SV detection tools are implied in stLFR_v1.1 for decreasing false discovery rate.
- Three figures used for illustrating stLFR fragment distribution and coverage are added.
- NA12878 benchmark VCF by GIAB is used for haplotype phasing error calculation.
Due to the size limitation of GitHub repository, followed softwares need to be installed to the specific directory (stLFR_v1/tools):
-
HapCUT2-master; 2. R-3.5.2; 3. bam2depth; 4. cnv; 5. gatk-4.0.3.0;
-
jre1.8.0_101; 7. python3; 8. vcftools; 9. Python-2.7.14; 10. SOAPnuke-1.5.6;
-
bwa; 12. fqcheck; 13. gnuplot-5.2.2; 14. picard; 15.samtools-1.3.
Furthermore, you need to download the following database to the specific directory:
-
hg19.fa (stLFR_v1.1/db/reference/hg19);
-
hg19.dbsnp.vcf (stLFR_v1.1/db/dbsnp);
-
hs37d5.fa (stLFR_v1.1/db/reference/hs37d5);
-
hs37d5.dbsnp.vcf (stLFR_v1.1/db/dbsnp);
-
phased vcf (stLFR_v1.1/db/phasedvcf).
Or you can download the above database and softwares from BGI Cloud Drive:
- tools Link: https://pan.genomics.cn/ucdisk/s/B7Nryq
- database Link: https://pan.genomics.cn/ucdisk/s/vmU3aq
Two Demo stLFR libraries for test, and every library consists two lanes. Libraries Link:
- T0001-2: ftp://ftp.cngb.org/pub/CNSA/CNP0000387/CNS0057111/
- T0001-4: ftp://ftp.cngb.org/pub/CNSA/CNP0000387/CNS0094773/
-
Make sure 'sample.list' file on a right format, you can refer to 'path' file in the example.
-
Run the automatical delivery script. Default reference: [hs37d5]
perl stLFR <sample.list> [options]
sample.list :
List of input.
Format: "sample path [ barcode ]"
If one sample have 2 lanes of fastq, there should be two lines in the fqlist file for this sample.
There are at least 2 columns separated by blank(s) or tab(s) in each line:
The 1st column is sample name, no blank or chinese character, required
The 2nd column is the lane path of fastq files, must contain *_1.fq.fqStat.txt, required
The 3rd column is the barcode positions [ 101_10,117_10,133_10 ]
Options:
--outdir <Path>
Output path. [./]
--ref <hs37d5>
Human reference version <hg19 | hs37d5>. [hs37d5]
--cpu <70>
CPU number. [70]
--help|-h
Print this information.
After all analysis processes ending, you will get these files below:
- Raw data and alignment summary: Alignment.statistics.xls
- Variant summary: Variant.statistics.xls
- GCbias figure: GCbias.pdf
- Insertsize figure: Insertsize.pdf
- Depth distribution figure: Sequencing.depthSequencing.depth.pdf
- Depth accumulation figure: Sequencing.depth.accumulation.pdf
- GCbias metrics: .gcbias_metrics.txt,.gcbias_summary_metrics.txt
- Insertsize metrics: *.insertsize_metrics.txt
- Phasing statistics only by SNP: Phasingcount.*.hapcut2.xls (compare with GIAB vcf)
- Phasing statistics by SNP and InDel: Phasingcount.*.hapcut2_SNP+InDel.xls (compare with GIAB vcf)
- Fragment coverage figure: *.frag_cov.pdf
- Fragment length distribution figure: *.fraglen_distribution_min5000.pdf
- Fragment per barcode distribution figure: *.frag_per_barcode.pdf
- If user has "Permission denied" problem in the process of running,you can use the command "chmod +x -R stLFR_v1.1-master/tools" to get executable permission of tools.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.