a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by Cumol
Cumol  ·  2392 days ago  ·  link  ·    ·  parent  ·  post: Pubski: October 4, 2017

I had troubles figuring out something else. I have two input files and 4 output files per sequence and 115 of those. So I needed a for loop that takes the name of the sequence (blabla001_1.seq) finds the second part of the pair (blabla002_2.seq) then feeds that into a java command that gives 4 outputs using the names of the files.

I am used to writing scripts in R so I didn't know how to do that for bash. At the end I found a script that is supposed to do it, took it apart and understood how it works. 10 minutes ago I got my results :)





Devac  ·  2391 days ago  ·  link  ·  
This comment has been deleted.
Cumol  ·  2391 days ago  ·  link  ·  

You are correct, the example was wrong. They bolded numbers should be the same :)

Some things work with xargs or GNU parallel but not everything... :(

Devac  ·  2391 days ago  ·  link  ·  
This comment has been deleted.
Cumol  ·  2390 days ago  ·  link  ·  

As I am rather fresh to programming and (because of bioconductor) my first language is R, I haven't checked out anything else but Python is on my list because more and more data analysis tools are showing up for python...