compare two sequences of a csv file
1
0
Entering edit mode
23 months ago
Debut ▴ 20

I have a csv file with a column which contains the gapped sequences then a column with the reference sequence and a column with the mutations (it makes appear that the mutatins between the gapped sequence and the reference sequence: thus when there is match it is a - that there is and when there is mutation there is the amino-acid of the mutated sequence) thus I would like to align these two sequences: between the gapped sequence and the sequence mutations. In order to get a column (for example: "L 123>M") with the original value ("L"), the value of the mutation (for example "M") then the position of the mutation ("123"). I don't know which module in python I could use to do this. Do you have any solutions please?

python • 557 views
ADD COMMENT
0
Entering edit mode
23 months ago
Jeremy ▴ 890

I think you want to add a column using pandas (see link below).

Add Column to Pandas Dataframe

It might help if you could provide some sample data.

ADD COMMENT

Login before adding your answer.

Traffic: 2134 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6