if (FALSE) # Authenticate via username/password
cyto_session <- authenticate(site="premium", username="cyril_cytometry", password="cytobank_rocks!")
# Authenticate via auth_token
cyto_session <- authenticate(site="premium", auth_token="my_secret_auth_token")
if (FALSE) # Download an FCS file to the current working directory
fcs_files.download(cyto_session, experiment_id = 22, fcs_file_id = 4)
# Download an FCS file to a new directory
fcs_files.download(cyto_session, 22, experiment_id = 22, fcs_file_id = 4,
directory="/my/new/download/directory/")
if (FALSE) # Download all FCS files as a zip file
fcs_files.download_zip(cyto_session, experiment_id=22)
# Download a select set of FCS files as a zip file
fcs_files.download_zip(cyto_session, experiment_id=22, fcs_files=c(22, 23, 24, 25))
if (FALSE) # List of a file internal compensation, containing a file internal compensation matrix
fcs_files.file_internal_comp_show(cyto_session, 22, fcs_file_id=2)
# Dataframe only of a file internal compensation
fcs_files.file_internal_comp_show(cyto_session, 22, fcs_file_id=2, output="dataframe")
# Raw list of a file internal compensation
fcs_files.file_internal_comp_show(cyto_session, 22, fcs_file_id=2, output="raw")
if (FALSE) # Dataframe of all FCS files with all fields present
fcs_files.list(cyto_session, 22)
# Raw list of all FCS files with all fields present
fcs_files.list(cyto_session, 22, output="raw")
if (FALSE) fcs_files.show(cyto_session, 22, fcs_file_id=2)
if (FALSE) fcs_files.upload(cyto_session, 22, file_path="/path/to/my_fcs_file.fcs")
if (FALSE) fcs_files.upload_zip(cyto_session, 22, file_path="/path/to/my_fcs_files.zip")
if (FALSE) fcs_files.status(cyto_session, 22)
Run the code above in your browser using DataLab