-
Notifications
You must be signed in to change notification settings - Fork 4
Extract chromosome M data #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Deena-B
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Marcello,
This is great! Thanks for taking the time to write this code and re-factor it.
I have some questions:
-
Does
open("chrMchr1New-"+str(x)+".fasta.eg", 'w')
also create a file or did you have to create them, then open them in your script? -
Are opened files automatically read one line at a time?
-
I'm confused about the two uses of '/n'.
First you seem to strip it:mylines.append(a_line.rstrip('\n'))
Then, does this line add it?:writer.writelines("%s\n" % i for i in mylines)
If so, why strip it and add it back? -
Would you also please explain what the letters
istand for in the string formatting line below?
writer.writelines("%s\n" % i for i in mylines)
Thanks so much,
Deena
|
Hi Marcello, From reading the "command line instructions" it looks like you have to do the rebase "from your project repository". Please give it a try and message me to let me know how it went. Cheers, |
|
Hi Deena,
|
The script "mitolin_split.py" will generate two new fasta.eg files with only ChrM data.