Skip to content

SysTutorials

Tutorials and news on Linux, systems, programming and more.

  • Tutorials
    • Systems
    • Programming
    • Software
    • Ask
  • Linux
  • Linux Manuals
  • Wiki
    • Blockchain and Crypto
  • Subscribe
  • Search

Tag: bam

How to count the number of reads in each chromosome in a bam file?

Posted on Mar 24, 2018 by Eric Ma

How to count the number of reads in each chromosome in a bam file? The bam file is already sorted by the chromosome names. If the bam file is indexed, you may quickly get these info from the index: samtools idxstats in.bam | awk ‘{print $1″ “$3}’ If the bam file is not indexed, you
Read more

QAawk, bam, bioinformatics, C, cat, How to, Programming, TutorialLeave a Comment

How to merge sam files on Linux?

Posted on Mar 24, 2018 by Eric Ma

The samtools merge can merge bam files while it can not work for sam files. How to merge sam files on Linux? According to the sam format specification, header lines start with @, while alignment lines do not. So you can use grep to merge sam files as follows efficiently. Assume the header is from
Read more

QAbam, Bash, bioinformatics, Command, Command line, convert, genome analysis, grep, How to, Linux, shellLeave a Comment

Categories

  • Insights
  • Linux
    • Linux Kernel
  • News
  • Systems
    • Blockchain
    • Computing systems
    • Resource management
    • Storage systems
  • Tutorial
    • Hardware
    • Mobile
    • Network
    • Programming
    • QA
    • Software
    • Virtualization
    • Web

Tags

Bash C cat CentOS Client config Command Command line configuration convert error Fedora gcc Git gnome Google How to kernel Library Linux memory Network OS PHP Process Programming R root Screen Script Server shell Software SSH sudo System systems time Tip Tutorial Ubuntu Web Windows www X yum

Wiki Tags

Blockchain Crypto Cryptocurrency Cryptographic Hash Cryptography Hash Protocols

Recent Posts

  • Synchronizing Thunderbird Calendar with Apple iCloud Calendar
  • SPF, DKIM and DMARC to Stop Email Sender Fraud: Intro and How to
  • Running Ephemeral Docker Containers – Automatically Remove a Docker Container After Running It
  • Configuring Fonts for Thunderbird snap to Display Fonts Nicely
  • Starting Page Number from the Second Page in MS Word

Recent wiki updates

  • NFT
  • Cryptocurrencies
  • Cryptographic token
  • Decentralization
  • CalDAV and CardDAV
  • Bitcoin
  • Blockchain and Crypto Wiki
  • Blockchain
© 2022 SysTutorials