Skip to content

Commit

Permalink
Merge branch 'master' into chemmy
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlongden authored Aug 8, 2023
2 parents 9e4f018 + 80da4b5 commit 5e8aa77
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 @@ -356,7 +356,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 @@ -371,6 +371,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 5e8aa77

Please sign in to comment.