Conversation
annotation.py — added get_bam_path(sample_id) helper; make_comparisons() now reads the bam_file column from samples.tab into bam_path_map; write_comparisons() and bam_count() use get_bam_path()
config/__init__.py — adds default bam_column = "bam_file"
__init__.py — initialises bam_path_map = {}
junctions.py, exons.py, genes.py, anchors.py — use annotation.get_bam_path(sample_id) instead of {bam_path}/{sample_id}.bam; exons/genes/anchors now iterate annotation.samples instead of scanning the directory
jbrowse2.py — write_sample_jobs() uses per-sample paths when bam_path_map is populated
How to use it — just add a bam_file column to samples.tab:
sample_id treatment_id bam_file
sample1 control data/samples/gregor@gmail.com/sample1/sample1.bam
sample2 test data/samples/gregor@gmail.com/sample2/sample2.bam
Existing samples.tab files without the column continue to work exactly as before using bam_path from splicekit.config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.