This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// saving from url to a file (append) | |
new File("output.xml") << new URL ("http://some.url/some/path.xml").getText() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stack overflow answer from Joran Ellis: | |
# http://stackoverflow.com/questions/5319839/read-multiple-csv-files-into-separate-data-frames | |
# If the path is different than your working directory | |
# you'll need to set full.names = TRUE to get the full | |
# paths. | |
my_files <- list.files("path/to/files") | |
# Further arguments to read.csv can be passed in ... | |
all_csv <- lapply(my_files,read.csv,...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# sra-paired.sh | |
# Kamil Slowikowski | |
# April 23, 2014 | |
# | |
# Check if an SRA file contains paired-end sequencing data. | |
# | |
# See documentation for the SRA Toolkit: | |
# http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=toolkit_doc&f=fastq-dump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Packer machine image configuration for a Nextflow/Docker machine. | |
# | |
# To use this file (Packer expects a JSON file) you need to | |
# use the project's yaml2json module to convert it to JSON. | |
# From this directory and a Suitable Python (see root's requirements.txt) | |
# you can run... | |
# | |
# ../../../yaml2json.py < nextflow.yml > nextflow.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
params.directories="." | |
params.headsize=100000 | |
params.extensions="bam bai" | |
params.help=false | |
params.extrafind="" | |
params.lines = 1000 | |
params.publishDir="." | |
def helpMessage() { | |
log.info""" |
OlderNewer