I have certain bam files which have reads of different size. I wish to create another bam file from it which has reads smaller than a certain length N. I should be able to run samtools stats and idxstats like commands on it. Is there a way to do it?
How to retain reads on only an certain size in a bam file?
685 views Asked by Hrishikesh Hardikar At
1
There are 1 answers
Related Questions in BIOINFORMATICS
- GROMACS 2024 with CP2K 9.1 BUILD
- Error: 'GDCquery_Maf' is not an exported object from 'namespace:TCGAbiolinks
- doing some ontology enrichment analysis
- Mercury + Mito + jupyter notebook
- Facing problem with gather() function in R
- How to derive snakemake wildcards from python objects?
- Clustering Medium length (100bp) DNA Sequences
- Creating a function that takes 2 DNA sequences, checks if they're the same length, if they're valid sequences and what type of mutation they have
- Residue contact map
- Troubleshooting SCTransform Error in Seurat: "Can't use NA as row index in a tibble for assignment"
- Fetching Gene Ontology Terms for a List of Genes Using Python
- How to convert .pep file extension to .fasta in python
- Is there a way to quickly identify all matching coding region sequences based on a list of protein identifiers from all GTDB representatives?
- How to use processed DEGs file for UMAP in Seurat?
- Function Structure Issue: 'track_plot' Error with No 'p' Argument
Related Questions in SAMTOOLS
- Samtools not working, but installing, because of libdeflate?
- samtools view -F option appears to not be functioning
- samtools and seqkit installation failed with conda (bioconda)
- Issue Installing Bowtie2 and Samtools on Mac M2
- Medaka: unrecognized command 'tools' and samtools not found
- I made an error when using metawrap to binning
- Corrupted sam file from bwa. [W::sam_parse1] mapped query cannot have zero coordinate; treated as unmapped
- Error in the process of converting Whole Transcriptome Sequence data into Variant Calling Format Files
- issue with FreeBayes in the multibam version
- Singularity could not open image
- How to run a command on multiple files within subdirectories with similar file suffix?
- Samtools mpileup : error reading from input file
- Extracting ITS Region from Paired-end FASTQ Data Using a Reference Genome: Guidance Needed
- Pysam view yield reads one at a time
- Regular Expression - how to capture a number of characters specified in the string
Related Questions in BAM
- filter bam after alignment
- problem with feature counts of RNA bulk seq paired data- in Rsubread
- How do i get and use AlignmentHeader from pysam?
- Extract Reads by region from a BAM file
- issue with FreeBayes in the multibam version
- Statistically comparing two surfaces (gams)
- bam-readcount: command not found
- Problem with viewing bam file downloaded from geo
- BaseRecalibration by GATK
- Error using BWA to map environmental transcriptome against a genomic reference
- Split a SAM file in Awk keeping N number of lines as header
- MissingOutputException snakemake
- pilon error, file .bam must be indexed BAM
- CRISPR genome wide screen analysis using MAGeCK-- Loss of reads/sgRNA using MAGeCK count function?
- sum elements in python list if match condition
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Use bamutils:
From the docs:
SEE ALSO:
Filtration Of Reads With Length Lower Than 30 From Bam: https://www.biostars.org/p/92889/