Samtools 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 Articlemacs and bedtools
HelloI have MACS2 output and now looking for peaks which are situated in introns. I have bed file with introns from USCS for my species. What file with peaks should I use for bedtools intersection?...
View ArticleConvert Bamtobed Score
Hey,just a short question....is there a possibility to set the score in the bed file to "1" an not to the the alignment score?? arguments -tag and -ed only use BAM alignment tags... ?!? :/Cheers!
View ArticleBed File Bedpe Format
Hi,I'm having trouble with converting the bam file into bed -bedpe using the bedtools.workflow: samtools sort -n mut.bam mut.Namesorted bamTobed -i mut.Namesorted.bam -bedpe >...
View ArticleBedtools To Compare A Vcf File From Samtools Mpileup With Dbsnp?
Hello,I have one big vcf file which is genereated by samtools mpileup by comparing 6 cell lines to see whether there are SNP differences between them.I would like to use bedtools for intersecting. How...
View ArticleSimple Redirection, I/O Problem With Bedtools
Hi Guys, Just a quick question. Its more of a Bash question rather than Bioinformatics, with Bedtools in question.I mostly pipe the bedtools I/O. Here's a general scenario :sed 1d fileA.bed |...
View ArticleExtract rows from BED file on the base of text content in one column
Hi,I am a newbie with scripting so I can't find an easy solution to this question by myself and I'd like to ask for some help.I have a long list of BED files, and for each file I want to scan them row...
View ArticleGTF2/GFF3 "feature" types and expression analysis
Hi, I aligned a few samples using STAR to the genome provided in the Illumina iGenomes UCSC hg19 bundle (here) -- I used the provided gene feature (gtf2) file as is. Now, my motive is to calculate the...
View Articleerror with bedtools slop
Hi, I am trying to run a bedtools slop on my.bed file and hg19.genomebedtools slop -i H3K27me3.bed -g hg19.genome -b 30I get the following error:Less than the req'd two fields were encountered in the...
View ArticleIntersect Gene Annotation With Specific Position Or Genomic Interval
Hi,I've several genomic interval and I want to check if they are overlapping with known gene. I've a gtf file with the coordinates of gene exons. My idea was to use intersectBed from bedtools but I've...
View ArticleDoes Bedops Have A Command Similar To The Bedtools Makewindows?
With bedtools you can make genomic windows from a genome file or a bed fileinput.bedchr1 1000000 1500000 chr3 500000 900000[prompt]$ bedtools makewindows -b input.bed -w 250000chr1 1000000 1250000 chr1...
View ArticleMulti Thread Bedtools
Hi,Is there a multi thread version of bedtools ? or is this feature in development ? Thanks,N.
View ArticleFiltering Bed Files By Using Bedops
hello every one,I have paired end illumina reads, R1.fastq and R2.fastq and I have mapped them as single-end reads by using bowtie2 default parameters, I performed further downstream analysis by using...
View ArticleGenbank to bed conversion for bedtools analysis
Hi, I need to use bedtools to obtain the coverage across two bam files for comparison. However, to do this, I need a .bed file of the genome features (of the reference genome used to generate the...
View ArticleConverting Gff To Bed With Bedtools?
I use bedtools's sortBed utility to sort BED files for various operations. It takes as input GFF files as well. However, when I feed it a GFF file as in:sortBed -i myfile.gffit outputs it as GFF, not...
View ArticleConverting Sam Files To Bam Files - Reproduce Results Nature Paper:...
I want to reproduce the results that people achieved in the following Nature paper: Transcriptome genetics using second generation sequencing in a Caucasian...
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 ArticleFinding Overlapping Variants (I.E. Indels, Snps) Using Annovar Format.
Hello,I know that using bedtools functions (specifically intersect and windows), it is possible to find overlapping features in the two sets of data. The catch here is that bedtools only accept the...
View ArticleError In Bedtools Getfasta: Chromosome Not Found
Hi, I am triing to use BEDtools to get some sequences from genomic coordinates. But I am having an errors saying " WARNING. chromosome (chr12) was not found in the FASTA file. Skipping." for each read...
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 Article