Hello,
As it is in post title, Is it possible to get .bed file of sequenced regions after NGS experiment? I mean that you have results of NGS experiment, let's take WES of 6 samples. Than I'd like to generate .bed file with regions of sequenced regions.
To be honest I need this to generate opportunity matrix which is created from those regions:
3.1 of below vignette https://www.bioconductor.org/packages/3.7/bioc/vignettes/signeR/inst/doc/signeR-vignette.html
Unfortunately I didn't recieve any of .bed files from the company that performed the experiment. All I got are .bam's.
In addition to this, can I take regions of coding sequences from UCSC's table browser?
Best regards, Adam
Amazing! That is what I need, many thanks!
Gencode latest release is 27, not 28 (as per URL available in my region- ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/.
you can use parallel instead of loop:
$
parallel bam2bed {} {.}.bed ::: *.bam
GNU Parallel is great, but it is IO limited when running on serial hardware.
If you really want to take advantage of parallelization, and you have indexed BAM files, and you have a Slurm or SGE cluster, take a look at
bam2bed_slurm
orbam2bed_sge
. Or, preferably,bam2starch_slurm
orbam2starch_sge
to make Starch archives.I fixed the link to the Gencode v28 URL.
URL fixed. Thanks.@Alex.
BEDOPS and Unix streams are an awesome combination. Use them where you can!