Skip to content

Commit

Permalink
fix: fix label on FIRE vs LINKER for decorator tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvollger committed Jul 15, 2024
1 parent 7546c09 commit c92a4d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/decorator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,19 @@ pub fn fire_decorators(fiber: &FiberseqData) -> Vec<Decorator> {
let mut rtn = vec![];
for (color, values) in map.into_iter() {
let (starts, lengths): (Vec<Option<i64>>, Vec<Option<i64>>) = values.into_iter().unzip();
let el_type = if *color == LINKER_COLOR {
"LINKER"
} else if *color == NUC_COLOR {
"NUC"
} else {
"FIRE"
};
rtn.push(Decorator::new(
fiber,
&starts,
Some(&lengths),
color,
"FIRE",
el_type,
));
}
rtn
Expand Down
4 changes: 2 additions & 2 deletions tests/test-decorator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ echo ""
rg FIRE -z tmp.dec.bed12.gz | cut -f 9,10 | sort | datamash -g 1 sum 2
echo ""

as="../fiberseq-fire/workflow/templates/bed12_filter.as"
as="../FIRE/workflow/templates/bed12_filter.as"
bedToBigBed -allow1bpOverlap -type=bed12+ -as=$as tmp.bed12.gz tests/data/hg38.analysisSet.fa.fai tmp.bed12.bb

echo "done bed12"

as="../fiberseq-fire/workflow/templates/decoration.as"
as="../FIRE/workflow/templates/decoration.as"
bedToBigBed -allow1bpOverlap -type=bed12+ -as=$as tmp.dec.bed12.gz tests/data/hg38.analysisSet.fa.fai tmp.dec.bed12.bb

aws s3 sync --profile Mitchell_Vollger --exclude "*" --include "tmp.*bb" $@ . s3://stergachis-public1/Mitchell/temp/FIREv2/
Expand Down

0 comments on commit c92a4d4

Please sign in to comment.