Commits

Faheem Mitha committed c9be6cb

Update paper

  • Participants
  • Parent commits a5f31e5

Comments (0)

Files changed (1)

 diff -r 93dca9262560 checkfasta.py
 --- /dev/null
 +++ b/checkfasta.py
-@@ -0,0 +1,109 @@
+@@ -0,0 +1,112 @@
 +def checkfasta(accnum, rss):
 +    import os
 +    from corrmodel.utils import get_conf
 +    return seqcontainsrss
 +
 +if __name__ == '__main__':
++
 +    accnum = "AJ231222"
 +    rss = "cacagtg atacagactgga acaaaaacc"
 +    #checkfasta(accnum, rss)
 +    #print rsslst
 +    #("SELECT sequence from motif inner join motifgroup on motif.motifgroup_id=motifgroup.id")
 +    fastafile = "accnum.fasta"
-+    print checkfasta2(fastafile, accnumlst, rsslst)
++    seqcontainsrss = checkfasta2(fastafile, accnumlst, rsslst)
++    #[t[0] for t in x if t[1] is True]
++    seqcontainingrssonly = [x[0] for x in seqcontainsrss if x[1] is True]
 diff -r 93dca9262560 corrmodel/load.py
 --- a/corrmodel/load.py
 +++ b/corrmodel/load.py