question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use with many bam files?

See original GitHub issue

In the documentation, there is a command to perform velocyto run on a single bam file, but how would you do this for 100s of cells at a time? Do you recommend aggregating all the bam files together and adding a unique ID to the “read_group” field?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
gioelelmcommented, Jan 22, 2018

You can do that in a second step using loompy.combine Notice that the function will combine the files without the need of loading the full matrixes into memory.

If you want to do this from the command line you can simply put together a simple script, something like the following should do:

import sys
import loompy

loompy.combine(sys.argv[1:-1], sys.argv[-1])
# usage: script.py file1.loom file2.loom file3.loom merged.loom
0reactions
ChelseaCHENXcommented, Aug 26, 2019

Great, thanks for the info and script. By any chance, do you know if the cell barcodes will be modified to reflect the sample of origin? Thanks again for your help. Fernando

It has been an old issue - but would like to comment on this - I suppose in the current version of run10X the barcodes are modified (adding the name of the sample) CertainSample:AAACCCAAGCTATCCAx? Would this affect the merging step? Thx!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to merge multiple bam files into single bam file - Biostars
After merging all bam file into single bam file using smatools merge. Do I also sort the merge bam file to do genome...
Read more >
Working with BAM Files - NCBI - NIH
Working with BAM Files · Step 1: Introduction · Step 2: BAM file with index file · Step 3: Viewing BAM Data ·...
Read more >
samtools-merge(1) manual page
Merge multiple sorted alignment files, producing a single sorted output ... Use the lines of FILE as `@' headers to be copied to...
Read more >
Learning the BAM format
Use the fastq tool to create FASTQ files from a BAM file. For paired-end reads, use -1 and -2 to create separate FASTA...
Read more >
Samtools guide: learning how to filter and manipulate with ...
Some downstream analysis programs that use BAM files actually require indexed BAM file. For example a common tool for genome alignment visualization the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found