Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ksw9
    Member
    • May 2013
    • 32

    variant calling using SeqIO

    Hi, I am new to Python and am trying to write a simple script to loop over sites in a multiple fasta file to identify variant sites. I would like to loop over each residue and then as an output, (1) have a list of variant positions, (2) concatenate residues at SNP sites for each sample (construct a list of haplotypes). Could you point me towards code that allows me to loop over residues in a multiple alignment?

    Thank you!
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    It sounds like you want to align the sequences (eg with Clustal or Muscle), then you can load the multiple sequence alignment with Biopython's Bio.AlignIO.read(...) function, and look at each column.
    Last edited by maubp; 11-02-2014, 03:32 AM. Reason: Typo

    Comment

    • ksw9
      Member
      • May 2013
      • 32

      #3
      Yes, perfect thank you!

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 06:09 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      39 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      47 views
      0 reactions
      Last Post SEQadmin2  
      Working...