nf-core / airrflow

B-cell and T-cell Adaptive Immune Receptor Repertoire (AIRR) sequencing analysis pipeline using the Immcantation framework
https://nf-co.re/airrflow
MIT License
52 stars 34 forks source link

Changeo additional output fields #339

Closed giulioisac closed 3 months ago

giulioisac commented 3 months ago

Description of feature

Hello! I want to know the location of the junction with respect to the sequence_alignment / germline_alignment fields. I am not able to extract this info from the current output of change-o. Do you have any suggestions? Thanks!

giulioisac commented 3 months ago

Workaround using regex:

String=dataframe.sequence_alignment.values[0]
s=dataframe.cdr3.values[0]
start,end=re.search(s, String).start(),re.search(s, String).end()