![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Write the subset of reads from BAM file into new SAM/BAM file, using R tools. | Old Pioneer | Bioinformatics | 0 | 01-27-2016 05:41 AM |
Let's talk about ONT nanopore stuff! | ECO | Oxford Nanopore | 47 | 09-13-2015 11:26 PM |
hello stuff | dino4eric | Introductions | 0 | 11-13-2014 04:34 AM |
Save error report as text file in BWA | CNVboy | Bioinformatics | 0 | 06-27-2011 04:03 PM |
Redundant(?) report problem in tophat .sam file? | Gangcai | Bioinformatics | 2 | 03-16-2010 01:05 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Turkey Join Date: Nov 2016
Posts: 7
|
![]()
Dear Collegues,
Lets say I have a miseq run and have the .bam file from the squencer and I would like to know how many percent of the exons (specific genes) are coverred in these .bam files? Is it possible? Thanks in advance |
![]() |
![]() |
![]() |
#2 |
Member
Location: Louisiana Join Date: Nov 2013
Posts: 38
|
![]()
Try CollectHSmetrics - part of Picard Tools
For details see: https://broadinstitute.github.io/pic...-overview.html |
![]() |
![]() |
![]() |
#3 | |
Junior Member
Location: Turkey Join Date: Nov 2016
Posts: 7
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Member
Location: Louisiana Join Date: Nov 2013
Posts: 38
|
![]()
You will have to make the BED file yourself. Here is a guide:
Code:
# install picard cd ~/bin/ wget https://github.com/broadinstitute/picard/releases/download/2.18.10/picard.jar mv picard.jar picard-2.18.10.jar # index reference (Reference is AmexG_v3.0.0.fa) samtools faidx AmexG_v3.0.0.fa # create sequence dictionary java -Xmx64g -jar ~/bin/picard-2.18.10.jar CreateSequenceDictionary \ R=AmexG_v3.0.0.fa \ O=AmexG_v3.0.0.dict # Convert BED to interval list java -jar ~/bin/picard-2.18.10.jar BedToIntervalList \ I=rfs.immunome.bed \ O=rfs.immunome.interval.list \ SD=AmexG_v3.0.0.dict # run CollectHsMetrics java -Xmx64g -jar ~/bin/picard-2.18.10.jar CollectHsMetrics \ BAIT_INTERVALS=/ssdwork/jelber2/rfs/rfs.immunome.interval.list \ BAIT_SET_NAME=Immunome \ TARGET_INTERVALS=/ssdwork/jelber2/rfs/rfs.immunome.interval.list \ METRIC_ACCUMULATION_LEVEL=SAMPLE \ R=/ssdwork/jelber2/rfs/AmexG_v3.0.0.fa \ I=ALL-samples.bam \ O=ALL-samples-coverage-metrics.txt # if needed, add readgroups java -Xmx64g -jar ~/bin/picard.jar AddOrReplaceReadGroups \ I=ALL-samples.bam \ O=ALL-samples-RG.bam \ SORT_ORDER=coordinate \ RGPL=illumina \ RGPU=barcode \ RGLB=Lib1 \ RGID=all \ RGSM=all \ VALIDATION_STRINGENCY=LENIENT # run CollectHsMetrics with ReadGroups added to BAM java -Xmx64g -jar ~/bin/picard-2.18.10.jar CollectHsMetrics \ BAIT_INTERVALS=/ssdwork/jelber2/rfs/rfs.immunome.interval.list \ BAIT_SET_NAME=Immunome \ TARGET_INTERVALS=/ssdwork/jelber2/rfs/rfs.immunome.interval.list \ METRIC_ACCUMULATION_LEVEL=SAMPLE \ R=/ssdwork/jelber2/rfs/AmexG_v3.0.0.fa \ I=ALL-samples-RG.bam \ O=ALL-samples-coverage-metrics.txt Gopo Last edited by Gopo; 08-08-2018 at 11:12 PM. Reason: wrong syntax for displaying code |
![]() |
![]() |
![]() |
#5 |
Junior Member
Location: Boston Join Date: Aug 2018
Posts: 4
|
![]()
This tools helps me create bed files from a gene list:
https://genome-euro.ucsc.edu/cgi-bin/hgTables Choose bed format while downloading. |
![]() |
![]() |
![]() |
Tags |
bam, coverage, exon, miseq, ngs |
Thread Tools | |
|
|