Skip to content

Commit

Permalink
distinguish de novo from user-provided ORF aa seqs
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Nov 17, 2023
1 parent b09843e commit d805afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bakta/features/orf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def detect_spurious(orfs: Sequence[dict]):

def get_orf_key(orf: dict) -> str:
"""Generate a standardized and unique ORF-like feature key for internal store/analyze/parse/retrieval cycles."""
return f"{orf['aa_hexdigest']}-{orf['contig']}-{orf['start']}-{orf['stop']}-{orf['strand']}"
return f"{orf['aa_hexdigest']}-{orf['contig']}-{orf['start']}-{orf['stop']}-{orf['strand']}-{orf.get('source', 'internal')}"


def get_orf_dictionary(orfs: Sequence[dict]) -> Dict[str, dict]:
Expand Down

0 comments on commit d805afd

Please sign in to comment.