Skip to content

Commit

Permalink
Merge pull request #220 from FlyBase/fix_xprn_tests
Browse files Browse the repository at this point in the history
add proper xprn RNA features
  • Loading branch information
gildossantos authored Aug 3, 2023
2 parents a720af3 + 71acc62 commit 80da4b5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion add-test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def load_pub_author_pubprop(parsed_yaml):
for i in range(15):
name = "FBtr{:07d}".format(i+1)
print("Adding mRNA {}".format(i+1))
# create the gene feature
# create the mRNA feature
cursor.execute(feat_sql, (None, organism_id['Dmel'], "symbol-{}RA".format(i+1),
'FBtr:temp_0', None, None, cvterm_id['mRNA']))
mrna_id = cursor.fetchone()[0]
Expand All @@ -370,6 +370,22 @@ def load_pub_author_pubprop(parsed_yaml):
cursor.execute(fs_sql, (name_id, mrna_id, pub_id))
cursor.execute(fs_sql, (symbol_id, mrna_id, pub_id))

# RNA xprn objects
for i in range(15):
name = "FBtr{:07d}".format(i+16)
print("Adding RNA xprn objects {}".format(i+1))
# create the RNA feature
cursor.execute(feat_sql, (None, organism_id['Dmel'], "symbol-{}-XR".format(i+1),
'FBtr:temp_0', None, None, cvterm_id['mRNA']))
mrna_id = cursor.fetchone()[0]

# add synonyms
cursor.execute(syn_sql, ("symbol-{}-XR".format(i+1), cvterm_id['symbol'], "symbol-{}-XR".format(i+1)))
symbol_id = cursor.fetchone()[0]

# add feature_synonym
cursor.execute(fs_sql, (symbol_id, mrna_id, pub_id))

# Tools
for i in range(15):
name = "FBto{:07d}".format(i+1)
Expand Down

0 comments on commit 80da4b5

Please sign in to comment.