|
| 1 | +# motivation |
| 2 | + |
| 3 | +converts 'Sequence ontology in OWL' to a C/java/... code to recreate the ontology tree in memory |
| 4 | + |
| 5 | +# Usage |
| 6 | + |
| 7 | +``` |
| 8 | +curl -L "https://github.com/The-Sequence-Ontology/SO-Ontologies/blob/master/so-simple.owl?raw=true" | xsltproc so2java.xsl -| |
| 9 | +`` |
| 10 | +
|
| 11 | +# Output |
| 12 | +
|
| 13 | +function: |
| 14 | +
|
| 15 | +```c |
| 16 | +newTerm(term_accession, term_label, term_parent1, term_parent2, .... term_parentN); |
| 17 | +``` |
| 18 | + |
| 19 | + |
| 20 | +```c |
| 21 | +newTerm("SO:0000001","region","SO:0000110"); |
| 22 | +newTerm("SO:0000002","sequence_secondary_structure","SO:0001411"); |
| 23 | +newTerm("SO:0000003","G_quartet","SO:0000002"); |
| 24 | +newTerm("SO:0000004","interior_coding_exon","SO:0000195"); |
| 25 | +newTerm("SO:0000005","satellite_DNA","SO:0000705"); |
| 26 | +newTerm("SO:0000006","PCR_product","SO:0000695"); |
| 27 | +newTerm("SO:0000007","read_pair","SO:0000150"); |
| 28 | +newTerm("SO:0000010","protein_coding","SO:0000401"); |
| 29 | +newTerm("SO:0000011","non_protein_coding","SO:0000401"); |
| 30 | +newTerm("SO:0000012","scRNA_primary_transcript","SO:0000483"); |
| 31 | +newTerm("SO:0000013","scRNA","SO:0000655"); |
| 32 | +newTerm("SO:0000014","INR_motif","SO:0001660"); |
| 33 | +newTerm("SO:0000015","DPE_motif","SO:0001660"); |
| 34 | +newTerm("SO:0000016","BREu_motif","SO:0001660"); |
| 35 | +newTerm("SO:0000017","PSE_motif","SO:0000713"); |
| 36 | +newTerm("SO:0000018","linkage_group","SO:0001411"); |
| 37 | +newTerm("SO:0000020","RNA_internal_loop","SO:0000715"); |
| 38 | +newTerm("SO:0000021","asymmetric_RNA_internal_loop","SO:0000020"); |
| 39 | +newTerm("SO:0000022","A_minor_RNA_motif","SO:0000715"); |
| 40 | +newTerm("SO:0000023","K_turn_RNA_motif","SO:0000021"); |
| 41 | +newTerm("SO:0000024","sarcin_like_RNA_motif","SO:0000021"); |
| 42 | +newTerm("","symmetric_RNA_internal_loop","SO:0000020"); |
| 43 | +newTerm("SO:0000026","RNA_junction_loop","SO:0000715"); |
| 44 | +newTerm("SO:0000027","RNA_hook_turn","SO:0000026"); |
| 45 | +newTerm("SO:0000028","base_pair","SO:0000002"); |
| 46 | +newTerm("SO:0000029","WC_base_pair","SO:0000028"); |
| 47 | +newTerm("SO:0000030","sugar_edge_base_pair","SO:0000028"); |
| 48 | +newTerm("SO:0000031","aptamer","SO:0000696"); |
| 49 | +newTerm("SO:0000032","DNA_aptamer","SO:0000031"); |
| 50 | +newTerm("SO:0000033","RNA_aptamer","SO:0000031"); |
| 51 | +(...) |
| 52 | +newTerm("SO:1001281","flanking_three_prime_quadruplet_recoding_signal","SO:1001277"); |
| 53 | +newTerm("SO:1001282","UAG_stop_codon_signal","SO:1001288"); |
| 54 | +newTerm("SO:1001283","UAA_stop_codon_signal","SO:1001288"); |
| 55 | +newTerm("SO:1001284","regulon","SO:0005855"); |
| 56 | +newTerm("SO:1001285","UGA_stop_codon_signal","SO:1001288"); |
| 57 | +newTerm("SO:1001286","three_prime_repeat_recoding_signal","SO:1001277"); |
| 58 | +newTerm("SO:1001287","distant_three_prime_recoding_signal","SO:1001277"); |
| 59 | +newTerm("SO:1001288","stop_codon_signal","SO:1001268"); |
| 60 | +newTerm("SO:2000061","databank_entry","SO:0000695"); |
| 61 | +newTerm("SO:3000000","gene_segment","SO:0000842"); |
| 62 | +``` |
| 63 | +
|
0 commit comments