Skip to content
/ rportal Public

🔮 R functionality for UMCCR Data Portal

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

umccr/rportal

Repository files navigation

R-CMD-check

🔮 rportal - Interacting with the UMCCR Data Portal

🍕 Installation

devtools::install_github("umccr/rportal")
# remotes::install_github("umccr/rportal")

🌀 CLI

{rportal} currently has one convenience wrapper for generating presigned URLs for bioinformatics data (FASTQs, BAMs, VCFs and HTMLs/TSVs):

Bioinformatics Data Sharing

A datashare.R command line interface is available for convenience. You need to export the rportal/inst/scripts/datashare/ directory to your PATH in order to use datashare.R:

datashare_cli=$(Rscript -e 'x = system.file("scripts/datashare", package = "rportal"); cat(x, "\n")' | xargs)
export PATH="${datashare_cli}:${PATH}"
datashare.R --version
0.1.2 

#-----------------------------------#
datashare.R --help
Usage
=====
 
/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rportal/scripts/datashare/datashare.R [options]


Options
=======
--subject_id=SUBJECT_ID
        Subject ID.

--library_id_tumor=LIBRARY_ID_TUMOR
        Library ID of tumor.

--wts
        This is a WTS library.

--csv_output=CSV_OUTPUT
        CSV output path.

--append
        Append to existing file (or write to new one if file does not exist -- caution: no column headers are written).

--version, -v
        Print rportal version and exit.

--help, -h
        Show this help message and exit

🚕 Running

datashare.R \
  --subject_id SBJ0XXXX \
  --library_id_tumor L230XXXX \
  --wts \
  --csv_output urls_SBJ0XXXX_L230XXXX.csv

About

🔮 R functionality for UMCCR Data Portal

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •