Jump to content

Tstuart

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Tstuart

  1. Hi Patrik, Sorry, I didn't see your comment until now. If you're still interested, I just posted my completed workflows here: http://www.alfredforum.com/topic/3894-biology-workflows-find-dna-sequence-information-and-convert-ng-dna-to-fmol/ Tim
  2. Hey guys, This one's for all the biologists out there. I made two workflows, first one takes a DNA sequence and returns the reverse complement, length, melting temperature, and GC content. You can select any of these to copy to the clipboard: download sequence.alfredworkflow The second workflow converts ng DNA to fmol and number of molecules: download fmol.alfredworkflow dnawesome.wordpress.com
  3. Hi, I'm new to alfred & am trying to make a simple workflow to reverse a string of letters and convert each letter to another letter (eg. convert A to T), then copy the output to the clipboard. I have a python script to do this, but I'm having trouble making it part of an alfred workflow. Here's the script: #reversecomplement def reverse(s): """Return the sequence string in reverse order.""" letters = list(s) letters.reverse() return ''.join(letters) def complement(s): """Return the complementary sequence string.""" basecomplement = {'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A', 'a': 't', 'c': 'g', 't': 'a', 'g': 'c'} letters = list(s) letters = [basecomplement[base] for base in letters] return ''.join(letters) def rc(s): """Return the reverse complement of the dna string.""" s = reverse(s) s = complement(s) return s Disclaimer: I have very little experience in writing code. Thanks in advance for your help!
×
×
  • Create New...