What Is The Best Way To Run Bedtools In Parallel With Blocking
Say I am working on a server with a shared file system and 4 quad core nodes (I/O is not an issue, 16 cores total). I want to run coverageBed across 20 files. Currently I have a shell script that would...
View ArticleCalculating Exome Coverage
*// Edit to make the post more clear (Mapping done via Bowtie2). My problem is that when counting Exome Coverage via coverageBed gives different results than via genomeCoverageBed. So I'm not sure if...
View ArticleHow To Find The Closest Distance From Bed Files Between Genes And Repeats...
How can I use the closestBed from bedtools to find the closest locations between two bed files. The important bit here is that i want them to be upstream and in correct oriantation.When I use the -s...
View ArticleHow Can I Compare And Merge Bed Files
I have three bed files with chrNo, start, end position and type. I need to compare each chrNo, start and end position of one file with 2 other files and write the common one in a new file. Can any one...
View ArticleHow To Get Annotation For Bed File From Another Bed File
Hello All,I have a bed file (with Chr, Start, End, Name, Score and Strand) Chr1 5678 5680 NA 7 + Chr1 700 800 NA 8 - Chr1 900 1200 NA 10 -and would like to know, how can I get the annotation for the...
View ArticleFastafrombed Problem
hi, I try this tools from BedTools but it doesnt work!$ cat testgenome404.fa>chr1 AAAAAAAACCCCCCCCCCCCCGCTACTGGGGGGGGGGGGGGGGGG $ cat test.bed chr1 5 10 $ ./fastaFromBed -fi testgenome404.fa -bed...
View ArticleCounting The Whole Insert Size From Paired-End Reads As Coverage
We have updated our workflows for per base sequence coverage to use genomeCoverageBed from BAM files. However for pair-end data it seems as though the regions between pair-end reads are not counted. To...
View Articlebedtools: extracting no coverage regions
Hello,I am not sure if this has been answered before as I looked and couldn't find a simple answer.I have a bam file, and all I want is to annotated all regions with 0 coverage in bed format. Is that...
View ArticleIntersectbed Provides An Empty Output
Hi,I've downloaded the recent Cygwin version 1.7.24 and an trying to run bedTools but I get an empty file as my output. When I run the same commandline and files on a colleagues computer also through...
View ArticleBedtools on Cygwin problem.
Hi  I'm trying to install the latest release of Bedtools via Cygwin but there's a weird error during process. I know this isn't the best solution, but I do not have an other choice. Perhaps anyone...
View ArticleBedtools Compare Multiple Bed Files?
I've been dealing with comparison between two bed files using intersectBed -a -b command. I'm just wondering, is there any commands in Bedtools which can help us compare multiple bed files? Say, I have...
View ArticleSamtools or Bedtools: How to filter a bam file with a bed file using strand...
HiI would like to filter a bam file, keeping only reads overlapping with genomic intervals from a bed file. I used samtools for this:samtools view -b -h -L bedfile.bed bamfile.bam However the -L option...
View ArticleHow To Count Genes In Genomic Regions Using A Gtf/Gff3 And A Bed File Of Regions
I'd like to count the number of unique genes in a gff file falling within a list of genomic regions. With bedtools I can count the number of regions within the gff which is almost what I want, but not...
View ArticleHow To Extract Scores From Bedgraph File Using Bed Tools
file1chr1 10 20 name 0 +file2chr1 12 14 2.5 chr1 14 15 0.5How could i extract average scores of file1 using file2, like below? I am trying to extract phastcons (file2) average scores of file1.chr1 10...
View ArticleHow To Find The Nearest Gene To A Retrotransposon Insert?
Hi,I have a BED file with the position of retrotransposons in the mouse genome and I would like to find the nearest gene, the distance to that gene and whether it is on the + or - strand. There are so...
View ArticleCounting Number Of Bam Reads Directly Within Set Of Intervals With Bedtools
how can I count the number of BAM reads falling directly within a set of intervals, given in a GFF format? Note that I do not want reads overlapping the intervals, but ones that fall directly within...
View ArticleBedtools Intersectbed
Apologies if this is blatantly obvious!I would like to compare coordinates in setA with those of setB. The output should have the same number of coordinates as setA and tell me how many nucleotides of...
View Articlebedtools intersect - something wrong with chromosome numbers >= 10?
Hi!I have an alignment (.bam) of reads to mm9 genome. I sorted it with samtools sort, so that later I can use -sorted key with bedtools. I also created a .bed-file with regions of interest, in which I...
View ArticleTo Calculate The Exact Total Number Of Mapped Reads In Exome Regions
Dear All, I have some questions here. I want to do some quality control analysis on my exome data that are mapped on the reference genome. I am having the input bam file for a sample which contains...
View ArticleWhat Is The Fastest Method To Determine The Number Of Positions In A Bam File...
I have two very large BAM files (high depth, human, whole genome). I have a seemingly simple question. I want to know how many positions in each are covered by at least N reads (say 20). For now I am...
View Article