Skip to content

Commit

Permalink
Merge pull request #40 from Lioscro/update
Browse files Browse the repository at this point in the history
sort transcripts in transcript_infos, make split-seq fwd strand, update CI
  • Loading branch information
Yenaled committed Nov 22, 2023
2 parents 2b12a21 + c7f2410 commit 63e15ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/
.vscode
.vscode
ngs_tools/.DS_Store
.DS_Store
2 changes: 1 addition & 1 deletion ngs_tools/chemistry/SingleCellChemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def whitelist_path(self) -> str:
name='SPLiT-seq',
description='Rosenberg et al. 2018',
n=2,
strand=SequencingStrand.UNSTRANDED,
strand=SequencingStrand.FORWARD,
cdna_parser=SubSequenceParser(SubSequenceDefinition(0)),
cell_barcode_parser=SubSequenceParser(
SubSequenceDefinition(1, 10, 8),
Expand Down
6 changes: 4 additions & 2 deletions ngs_tools/fasta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ def split_genomic_fasta_to_cdna(
for gene_id, gene_attributes in gene_infos.items():
if gene_attributes['chromosome'] == entry.name:
_gene_infos[gene_id] = gene_attributes
all_transcripts = sorted(gene_attributes['transcripts'])
_transcript_infos.update({
transcript_id: transcript_infos[transcript_id]
for transcript_id in gene_attributes['transcripts']
for transcript_id in all_transcripts
})

# Write all transcripts as separate FASTA entries.
Expand Down Expand Up @@ -107,9 +108,10 @@ def split_genomic_fasta_to_intron(
for gene_id, gene_attributes in gene_infos.items():
if gene_attributes['chromosome'] == entry.name:
_gene_infos[gene_id] = gene_attributes
all_transcripts = sorted(gene_attributes['transcripts'])
_transcript_infos.update({
transcript_id: transcript_infos[transcript_id]
for transcript_id in gene_attributes['transcripts']
for transcript_id in all_transcripts
})

# Write all transcripts as separate FASTA entries.
Expand Down

0 comments on commit 63e15ec

Please sign in to comment.