Conversation
Deena-B
left a comment
There was a problem hiding this comment.
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.