Skip to content

Latest commit

 

History

History

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Command lines for User

  1. Register a user instance
bash user/create.sh http://localhost:8081 'guest2' 'guest2'
  1. Login with a user
bash user/login.sh http://localhost:8081 'guest' 'guest' token.txt
bash user/login.sh http://localhost:8081 'guest2' 'guest2' token.txt

bash user/login.sh http://localhost:8081 'admin' '123.qwe' token.txt
  1. Edit a user (admin user)
bash user/edit.sh http://localhost:8081 token.txt 'guest2' '{"role": "guest2", "password": "guest3"}'
  1. Get a user instance (admin user)
bash user/get.sh http://localhost:8081 token.txt 'guest2'
  1. List all user instances (admin user)
bash user/query.sh http://localhost:8081 token.txt
  1. Delete a user (admin user)
bash user/delete.sh http://localhost:8081 token.txt 'guest2'

Command lines for Dataset

  1. List all dataset instances on a nextflow server
bash dataset/query.sh http://localhost:8081 token.txt
  1. Create a dataset instance
bash dataset/create.sh http://localhost:8081 token.txt '{"name": "dataset 1", "description": "Short description of dataset"}' dataset_id.txt
  1. Upload dataset data for a dataset instance on a nextflow server
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "directory-path" "raw_files" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-SearchEngine/tests/test_Raws_1/inputs/raw_files/Jurkat_Fr1.raw"

bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "exp_table" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Recom_1/inputs/exp_table.txt"

bash dataset/link.sh http://localhost:8081 token.txt dataset_id.txt '{"path": "/mnt/shared/unit/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Heteroplasmic/inputs/experimental_table.tsv", "name": "experimental_table.tsv"}'
  1. Remove a data file for a dataset instance on a nextflow server
bash dataset/remove.sh http://localhost:8081 token.txt dataset_id.txt '{"filenames": ["inputs/raw_files/Jurkat_Fr1.raw"]}'

bash dataset/remove.sh http://localhost:8081 token.txt dataset_id.txt '{"filenames": ["exp_table.txt"]}'

bash dataset/remove.sh http://localhost:8081 token.txt dataset_id.txt '{"filenames": ["experimental_table.tsv"]}'
  1. Get a dataset instance on a nextflow server
bash dataset/get.sh http://localhost:8081 token.txt dataset_id.txt
  1. Edit a dataset instance on a nextflow server
bash dataset/edit.sh http://localhost:8081 token.txt dataset_id.txt '{"description": "Short description of dataset 2"}'
  1. Delete a dataset instance on a nextflow server (admin user)
bash dataset/delete.sh http://localhost:8081 token.txt dataset_id.txt

Test example for nf-PTM-compass using ReCom dataset

bash dataset/create.sh http://localhost:8081 token.txt '{"name": "TMT_FA_dataset_1", "description": "ReCom dataset_1 (TMT_FA)"}' dataset_id.txt
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "directory-path" "recom_files" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Recom_1/inputs/recom_files/TMT_FA_1_fr1.txt"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "directory-path" "recom_files" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Recom_1/inputs/recom_files/TMT_FA_1_fr2.txt"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "exp_table" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Recom_1/inputs/exp_table.txt"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "database" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Recom_1/inputs/database.fasta"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "params-file" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Recom_1/inputs/params.ini"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "sitelist_file" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Recom_1/inputs/sitelist.txt"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "groupmaker_file" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Recom_1/inputs/groupmaker.txt"
bash dataset/link.sh http://localhost:8081 token.txt dataset_id.txt '{"path": "/mnt/shared/unit/UNIDAD/DatosCrudos/Jose_Antonio_Enriquez/Ratones_Heteroplasmicos/HF/PTM_JMR_withNextflow/nf-SearchEngine/results/heart/modules/mzextractor/01_mz_extractor", "name": "msfragger_files"}'
bash dataset/link.sh http://localhost:8081 token.txt dataset_id.txt '{"path": "/mnt/shared/unit/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test_Heteroplasmic/inputs/experimental_table.tsv", "name": "exp_table.txt"}'

Test example for nf-PTM-compass using RefMod dataset

bash dataset/create.sh http://localhost:8081 token.txt '{"name"; "DIA_BA_dataset_1", "description": "RefMod dataset_1 (BA_DIA)"}' dataset_id.txt
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "directory-path" "refmod_files" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test2/inputs/refmod_files/BA_1_REFRAG.tsv"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "directory-path" "refmod_files" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test2/inputs/refmod_files/BA_2_REFRAG.tsv"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "exp_table" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test2/inputs/exp_table.txt"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "database" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test2/inputs/database.fasta"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "params-file" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test2/inputs/params.ini"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "sitelist_file" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test2/inputs/sitelist.txt"
bash dataset/upload.sh http://localhost:8081 token.txt dataset_id.txt "file-path" "groupmaker_file" "/mnt/tierra/U_Proteomica/UNIDAD/Softwares/jmrodriguezc/nf-PTM-compass/tests/test2/inputs/groupmaker.txt"

Command lines for Workflow

  1. List all workflow instances on a nextflow server
bash workflow/query.sh http://localhost:8081 token.txt
  1. Create a workflow instance
bash workflow/create.sh http://localhost:8081 token.txt \
'{"name": "PTM-compass",
"pipeline": "https://github.com/CNIC-Proteomics/nf-PTM-compass",
"revision": "0.1.0",
"profiles": "guest",
"description": "PTM-compass workflow"
}' workflow_id.txt
  1. Edit a workflow instance
bash workflow/edit.sh http://localhost:8081 token.txt workflow_id.txt \
'{"name": "PTM-compass",
"pipeline": "https://github.com/CNIC-Proteomics/nf-PTM-compass",
"revision": "0.1.0",
"profiles": "guest",
"description": "PTM-compass workflow 2"
}'
  1. Launch a workflow instance on a nextflow server

Using ReCom as inputs

bash workflow/launch.sh http://localhost:8081 token.txt workflow_id.txt \
'{"inputs": [
    {"name": "--recom_files", "type": "directory-path", "value": "'"$(cat dataset_id.txt)"'/recom_files/*"},
    {"name": "--exp_table", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/exp_table.txt"},
    {"name": "--database", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/database.fasta"},
    {"name": "--decoy_prefix", "type": "string", "value": "DECOY_"},
    {"name": "--params_file", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/params-file.ini"},
    {"name": "--sitelist_file", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/sitelist_file.txt"},
    {"name": "--groupmaker_file", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/groupmaker_file.txt"}
]
}'

Using RefMod as inputs

bash workflow/launch.sh http://localhost:8081 token.txt workflow_id.txt \
'{"inputs": [
    {"name": "--refmod_files", "type": "directory-path", "value": "'"$(cat dataset_id.txt)"'/refmod_files/*"},
    {"name": "--exp_table", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/exp_table.txt"},
    {"name": "--database", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/database.fasta"},
    {"name": "--decoy_prefix", "type": "string", "value": "DECOY_"},
    {"name": "--params_file", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/params-file.ini"},
    {"name": "--sitelist_file", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/sitelist_file.txt"},
    {"name": "--groupmaker_file", "type": "file-path", "value": "'"$(cat dataset_id.txt)"'/groupmaker_file.txt"}
]
}'
  1. Get the log of a workflow instance on a nextflow server
bash workflow/log.sh http://localhost:8081 token.txt workflow_id.txt 4
  1. Get a workflow instance on a nextflow server
bash workflow/get.sh http://localhost:8081 token.txt workflow_id.txt
  1. Cancel a workflow instance on a nextflow server
bash workflow/cancel.sh http://localhost:8081 token.txt workflow_id.txt
  1. Delete a workflow instance on a nextflow server (admin user)
bash workflow/delete.sh http://localhost:8081 token.txt workflow_id.txt

Command lines for outputs

  1. Get a list of all outputs for a workflow instance and attempt on a nextflow server
bash output/get.sh http://localhost:8081 token.txt workflow_id.txt 4
  1. Retrieve all data (all files) for a workflow instance and attempt on a nextflow server
bash output/archive.sh http://localhost:8081 token.txt workflow_id.txt 4
  1. Download a single file for a workflow instance and attempt on a Nextflow server.
bash output/download_single.sh http://localhost:8081 token.txt workflow_id.txt 4 modules/solver/11_group_maker/experiment_PDMTable_GM.txt
  1. Download multiple files for a workflow instance and attempt on a Nextflow server.
bash output/download_multi.sh http://localhost:8081 token.txt workflow_id.txt 4 \
'[
    "modules/solver/11_group_maker/experiment_PDMTable_GM.txt",
    "modules/solver/12_joiner/experiment_PDMTable_GM_J.txt"
]'
  1. Delete the outputs for a workflow intance and attempt on a nextflow server
bash output/delete.sh http://localhost:8081 token.txt workflow_id.txt 1

Command lines for volumes

  1. Get a list of all shared volumes for a given path on a nextflow server
bash volume/get.sh http://localhost:8081 token.txt
  1. Get a list of files within datasets
bash volume/get.sh http://localhost:8081 token.txt /workspace/_datasets
bash volume/get.sh http://localhost:8081 token.txt /workspace/_datasets/671fa5d095d27c530eaa46bc
  1. Get a list of files within workflows
bash volume/get.sh http://localhost:8081 token.txt /workspace/_workflows
bash volume/get.sh http://localhost:8081 token.txt /workspace/_workflows/671faa9d4b314941f82b4421
  1. Get a list of files within shared volumes
bash volume/get.sh http://localhost:8081 token.txt /mnt/shared/unit/unit
bash volume/get.sh http://localhost:8081 token.txt /mnt/shared/unit/unit/UNIDAD/Softwares
bash volume/get.sh http://localhost:8081 token.txt /mnt/shared/unit/UNIDAD/DatosCrudos/Jose_Antonio_Enriquez/Ratones_Heteroplasmicos/HF/PTM_JMR_withNextflow/nf-SearchEngine/results/heart/modules/decoypyrat/01_decoy_py_rat