More posts like this
-
How to iterate through paired-end reads in pysam?
written by Tao •I want to process both reads in a paired-end read simultaneously, but don't know how to do this efficiently.If I use `for read in bam_file:` …
-
Which side do I need to trim when having adapter residues in my reads?
written by gogeni5529 •Hi everyone, I was wondering if someone can point me to a good explanation where i can better understand how the reads in my fastq …
-
STAR split reads into two strands
written by Alexander •Hi all, I'm trying to find a way to split reads mapped with STAR into two separate bam-files, one for each strand. STAR is able …
-
Trim bam file reads to the same length
written by rrapopor •Hi, I have a bam file with vary reads length. I want to trim all the reads to the length of the shorter read in …
-
Sampling random reads from BAM files with allowing same reads
written by SSK •Hi. I'm trying to randomly sample reads with allowing same reads. I tried to random sampling by using "samtools view -s", but it seems like …
-
Trimmomatic; How to get only q20 < q < q30 reads
written by SSK •Hi! At first, I used trimmomatic with an average quality score per 4 bp of >= 30, and made bam file by using bwa mem. …
-
pysam: Use read ID to access location
written by bd2810 •I know the read_ids of my reads, but I want to know, i.e. "chr1:100-120". Therefore I'm trying to access the read from a bam/sam file …
-
Iterating through paired-end reads in samtools / pysam
written by olavurI want to process both reads in a paired-end read simultaneously, but don't know how to do this efficiently. I'm currently doing it the following …
-
Trim Reads From BAM files
written by fusion.slopeHello, am trying to trim the reads aligned to the genome from my bam files of different sizes (50 and 80 nucleotides). Am doing this …
-
cutadapt for trimming reads to specific length
written by Varun GuptaHi I am trying to trim my fastq files where I have reads ranging from 20bp to 150bp as shown by fastqc result. I want …
Your question lacks any details. What do you want to trim? What is
not whole reads but each read? Please give representative examples.Sorry, my words was not enough. I want to do bootstrap method. Thus I sampled randomly from bam file, and made subsampled.bam. On the top of that, I want to crop read randomly from subsampled.bam.
Ex.
[pre bam]
read1 150b
read2 150b
read3 150b
[trimmed bam]
read1 100b (trimmed 50b)
read2 150b (trimmed 0b)
read3 20b (trimmed 130b)
Do you understand what I mean?