How to get sequence combination with Rsamtools?
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
Adding gene to GRange objects with single base
written by QX 9Hi all, I have a Grange objects look like this: ``` GRanges object with 4598553 ranges and 2 metadata columns: seqnames ranges strand | ref …
-
Overlap between Genome and Pattern
written by kristenammons2 1Hello everyone, I am trying to implement this method but failed to have the output answer. Can someone help me take a look what I …
-
GRanges: remove ranges that falls in between a larger range?
written by simplitia 14Hi suppose I have a grange object as such, g <- GRanges(seqnames=c(rep("Chr1",3)), strand=rep("+",3), ranges=IRanges(start=c(10,2,2), end=c(24,27,30))) this produces a grange that looks like this. GRanges object …
-
GRanges: merge metadata from the same ranges
written by arseru 2Hi everyone, I'm having trouble trying to merge the metadata from 3 different GRanges object that fall in the same range. I'll give an example …
-
How to obtain distinct/uniqe rows from GenomicRanges object
written by gundalav 38I have the following [GenomicRanges][1] object created with this: ```r library(GenomicRanges) gr <- GRanges(seqnames = "chr1", strand = c("+", "-","-", "+"),ranges = IRanges(start = c(1,3,3,5), …
-
How do I subset a GRanges on chromosome, region and strand?
written by endrebak852 11library(GenomicRanges) gr=GRanges(seqnames=c("chr1","chr2","chr2"), ranges=IRanges(start=c(50,150,200),end=c(100,200,300)), strand=c("+","-","-") ) I want to get all intervals between 200-300 on chromosome 2, the minus strand. How do I do that? gr[seqnames(gr) …
-
Pattren counter in fasta file
written by adityagt15 0I am trying to get the count of the matching pattren in the fasta file. i am having the fasta files which contains 57k sequences. …
-
findOverlapsOfPeaks() of package ChIPpeakAnno in R
written by salamandra 55When running the following code with ChIPpeakAnno package in R: gr3 = GRanges(seqnames = c("chr1"), strand = c("+","+","+"), ranges = IRanges(start = c(1,3,5), width = …
-
genomic ranges to bed (contig entries)
written by modockesner 1Hi, I am new at genomic ranges and have a gr ranges data set and am trying to convert it into a bed files. However, …
-
Rsamtool or Rbamtools function to view the number of reads between a range
written by startup_biostar 2what is Equivalent R function for the command line below? `samtools view yourBAMfile.bam chr1:567876-568100 | wc -l` How should I approach. I got a `GRanges` …
Your question is a little too brief to understand. A BAM file has alignment positions, what is it you mean by "combination"? And what are you counting? You can use rtracklayer, or GenomicAlignments to import a BAM file, and the result will be seqnames and ranges for each read, in an object of your choice (e.g. GenomicRanges). Can you explain more about what your are trying to do with your BAM file?