Coder Social home page Coder Social logo

arc-sync's Introduction

Who can write this program in the fewest lines of code in the language
of your choice*?
 
arc-sync -h xnat.host.org -u user -p pass -m MR -proj MY_PROJ -l /my/local/archive
 
- Get list of MR sessions in MY_PROJ.

- Compare list of sessions with existing directories in /my/local/archive.

- Download sessions that aren't listed as directories in
  /my/local/archive to /my/local/archive
 
Everyone needs to try, submissions due on Monday and will be reviewed
at lab meeting. I can do it in 10 lines, and I'm a crappy
programmer. Whoever gets it done in fewest lines of code gets a $100
bonus. Anyone who makes their code sync specific sequence types gets
extra kudos.
 
-Dan
 
* The language of your choice must be Perl, Python, or shell. Possibly
  something else if you prove Avi can run it without instruction. I'm
  guessing Perl is most compact but feel free to prove me wrong.

arc-sync's People

Contributors

karchie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arc-sync's Issues

Seems to be too dated and cannot talk to our server

arc-sync$ ./arc-sync.py -h http://XXX.edu --proj YYY -u ZZZ -p "XXX"
Traceback (most recent call last):                              
  File "./arc-sync.py", line 8, in <module>                     
    map(lambda e: z.ZipFile(sio.StringIO(get('%(URI)s/scans/ALL/files?format=zip' % e)), 'r').extractall(opts['-l']), filter(lamb
ents' % opts))['ResultSet']['Result']))                         
  File "./arc-sync.py", line 8, in <lambda>                     
    map(lambda e: z.ZipFile(sio.StringIO(get('%(URI)s/scans/ALL/files?format=zip' % e)), 'r').extractall(opts['-l']), filter(lamb
ents' % opts))['ResultSet']['Result']))                         
KeyError: '-l'

most likely the script is too dated to talk to any recentish XNAT server.

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.