Question: Given what you went through so far, you should now be able to write scripts that search strings, specify relevant groups using regular expressions, and
Given what you went through so far, you should now be able to write scripts that search strings, specify relevant groups using regular expressions, and return just the data you are looking for. Let's give it a try. Note: This question is set to unlimited attempts.
Write a function named 'RNAseqParser' that:
Takes an input string of data.
Creates the output string with the repeating format xtyn where
x is the gene name
t is a tab
y is the x gene's expression data found in the th column of the original data file
is a line return
You could accomplish this by searching each line of the data with the for line in X: for loop syntax where X is your inputted data and storing the match information in a match object.
Returns your properly formatted output string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
