Question: extractgoids Write a function that takes in a text input ( a char vector ) and returns the list of Gene Ontology ( GO )

extractgoids
Write a function that takes in a text input (a char vector) and returns the list of Gene Ontology (GO) term identifiers contained in that text. Assume that each GO term is listed with the *word*"GO:" followed by a number. Your function should return the list of GO identifiers as a numerical vector. Your function must return the GO identifiers in the order they appear in the text.
>> s=['Furthermore, Figure 8C highlights a list of several differentially expressed genes involved' ...' in the inflammatory response (Gene Ontology GO:0006954). DEGs grouped by up- or down-regulation' ...' in Exo() and Exo(+) samples. GO:0006954(underlined) and the DEGs whose protein products interact' ...' with Traf6, Irak1, Pdcd4 are shown. GO:000739 Nervous System Development was the most significantly' ...' enriched biological process. The figure was created with ShinyGO:2020.']; >> disp( extractgoids(s))69546954739>> disp( extractgoids('The enriched biological processes were: GO:0007399, GO:0007268, GO:0007218, and GO:0006811.'))7399726872186811

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!