Giter Site home page Giter Site logo

Comments (3)

datakid avatar datakid commented on May 28, 2024

Actually, I think this is the easiest way to do it?

genome=sys.argv[2]
if len(sys.argv) == 4: 
  filename=sys.argv[3] 
elif genome == 'hg19': 
  filename='/seq/references/Homo_sapiens_assembly19.fasta' 
elif genome == 'mm9': 
  filename='/seq/references/Mus_musculus_assembly9.fasta' 
elif genome == 'mm10': 
  filename='/seq/references/Mus_musculus_assembly10.fasta' 
elif genome == 'hg18': 
  filename='/seq/references/Homo_sapiens_assembly18.fasta' 
else: 
  print 'Usage: %s <restriction enzyme> <genome> [location]' % (sys.argv[0]) 
  print '<genome> not found and [location] not defined' 
  sys.exit(1) 

from juicer.

datakid avatar datakid commented on May 28, 2024

Oh. I see that this is fixed in master. My bad. Sorry.

from juicer.

amv33576 avatar amv33576 commented on May 28, 2024

I keep getting this error message:
$ python ./generate_site_positions.py 'DpnII' 'hg19'
File "./generate_site_positions.py", line 9
print 'Usage: %s [location]' % (sys.argv[0])
^
SyntaxError: invalid syntax

I tried by adding the location in the command line (python generate_site_positions.py DpnII hg19 ~/test/references/Homo_sapiens_assembly19.fasta --> got same error

Then, I changed the paths in the file generate_site_positions.py, I changed the path from
filename='/seq/references/Homo_sapiens_assembly19.fasta' to
filename='~/test/references/Homo_sapiens_assembly19.fasta' and it did not work.

Could you please help me to figure out what is wrong?

Thanks,

Anyi

from juicer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.