Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double quoting file names in multiBamSummary wrapper #678

Closed
dpryan79 opened this issue Mar 1, 2018 · 5 comments
Closed

Double quoting file names in multiBamSummary wrapper #678

dpryan79 opened this issue Mar 1, 2018 · 5 comments
Assignees
Milestone

Comments

@dpryan79
Copy link
Collaborator

dpryan79 commented Mar 1, 2018

The wrapper ends up producing commands like this:

ln -f -s "/data/galaxy2/files/000/351/dataset_351000.dat" "Larsson MSL2 _wt__0.bw" &&
ln -f -s "/data/galaxy2/files/000/351/dataset_351001.dat" "Larsson MSL2 _roX___1.bw" &&
multiBigwigSummary BED-file  --numberOfProcessors "${GALAXY_SLOTS:-4}"  --outFileName /data/galaxy2/files/000/392/dataset_392033.dat  \
--bwfiles ''Larsson MSL2 _wt__0.bw'' ''Larsson MSL2 _roX___1.bw'' \
--labels 'Larsson MSL2 _wt_' 'Larsson MSL2 _roX__'  \
--outRawCounts '/data/galaxy2/files/000/392/dataset_392034.dat'  --BED /data/galaxy2/files/000/357/dataset_357386.dat     --transcriptID transcript --exonID exon --transcript_id_designator transcript_id

There are two 's on either side of the bw file names. That obviously is going to cause an error:

Fatal error: Exit code 1 ()
The number of labels does not match the number of bigWig files.

I'll take this chance to fix this in 3.0.1, due out tomorrow morning or later tonight.

@dpryan79 dpryan79 self-assigned this Mar 1, 2018
@bgruening
Copy link
Member

Also the quotes should all be single quotes and not double quotes, for example in the link command. I thought we fixed this already :(

@dpryan79
Copy link
Collaborator Author

dpryan79 commented Mar 1, 2018

I'll change that too real quick. I'm not terribly consistent about ' vs. ", they're essentially equivalent to me when quoting.

@dpryan79
Copy link
Collaborator Author

dpryan79 commented Mar 1, 2018

@bgruening Looking through the wrappers it doesn't appear that we've ever tried to standardize to single quotes (we also never did in the python code). Is there any tangible reason to do so? Otherwise I'll just fix the current bug and leave the other quotes as they are.

@dpryan79 dpryan79 added this to the 3.0.1 milestone Mar 1, 2018
@bgruening
Copy link
Member

Its only relevant on bash. " are evaluated and ' not. This measn " are a potential security hole in the sense that a use can sneak in shell command via history names or text parameters.

@dpryan79
Copy link
Collaborator Author

dpryan79 commented Mar 2, 2018

OK, I'll make a hotfix for that next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants