Question: Create an output file which the result is a map
gravatar for albamaria.muniesa
6.4 years ago by
albamaria.muniesa0 wrote:


I need to create an output file, the problem is that the output is a map of a sequence with restriction enzymes. I used this code:

cdna = Seq.Seq(sequence, IUPAC.unambiguous_dna)

anal=Restriction.Analysis(Restriction.CommOnly, cdna)
anal.print_as ("map")

print >> outputf, "Restriction map: \n", anal.print_that()

I don't know what I must do, replace anal.print_that() for...?

It's possible to create the output file with the map as it print in the terminal?


Thank you :)


ADD COMMENTlink modified 6.4 years ago by Matt Shirley9.5k • written 6.4 years ago by albamaria.muniesa0
gravatar for Matt Shirley
6.4 years ago by
Matt Shirley9.5k
Cambridge, MA
Matt Shirley9.5k wrote:

I'm not too familiar with your particular analysis, but it looks like you can get the string representation of the map:

print >> outputf, "Restriction map: \n", anal.make_format("map")
ADD COMMENTlink written 6.4 years ago by Matt Shirley9.5k

It doesn't work, the error is:

 print >> outputf, "Restriction map: \n", anal.make_format("map")
TypeError: _make_map() takes exactly 5 arguments (2 given)


ADD REPLYlink written 6.4 years ago by albamaria.muniesa0
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1583 users visited in the last hour