The CGC Knowledge Center

{"id":"55faf11ba62ba1170021a9a7","name":"The CGC Knowledge Center","subdomain":"cancergenomicscloud","versions":[{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"_id":"55faf11ba62ba1170021a9aa","releaseDate":"2015-09-17T16:58:03.490Z"}],"current_version":{"version_clean":"1.0.0","version":"1.0"},"oauth":{"enabled":false},"api":{"name":"","url":"https://cgc-api.sbgenomics.com/v2","contenttype":"form","auth":"","explorer":false,"proxyEnabled":true,"jwt":false,"authextra":[],"headers":[],"object_definitions":[]},"apiAlt":[],"plan_details":{"name":"Business","is_active":true,"cost":199,"versions":10000,"custom_domain":true,"custom_pages":true,"whitelabel":true,"errors":true,"password":true,"landing_page":true,"stylesheet":true,"javascript":true,"html":true,"extra_html":true,"admins":true},"intercom":"","intercom_secure_emailonly":false,"flags":{"allow_hub2":false,"hub2":false,"migrationRun":true,"oauth":false,"swagger":true,"correctnewlines":false,"speedyRender":false,"allowXFrame":false,"jwt":false,"hideGoogleAnalytics":false,"stripe":false,"disableDiscuss":false,"autoSslGeneration":true,"ssl":false,"newApiExplorer":false,"newSearch":true,"useReactApp":false},"asset_base_url":""}
  • Documentation
  • Forum
  • API
  • Datasets Hub
  • CGC
PopularNewestOpen

API


$self is not defined?

Hi, Please explain the use of $self in the Value field of a job input spec. I don't know when and how I can use it. For example, say the ID of my input parameter is called 'quality'. In the JavaScript expression I want to enter in the Value field, it seems I must refer to the parameter as $job.inputs.quality, but I thought I could also do $self.quality. In the documentation at http://docs.cancergenomicscloud.org/docs/dynamic-expressions-in-tool-descriptions#section-the-self-object, it says: """ In the command line bindings for the tool inputs, $self is set to the value of the input. In other words, in this context $self is just $job.inputs.<input_id>. """ According to that documentation, I should be able to use an expression such as "$self || 5" to create a default value of 5. But when doing so, I get this error when trying to run my tool: """ Error This task ran into a problem during execution and did not finish. Failed to start trimgalore. Failed to build command line. Failed to build command line. Failed evaluating expression $self || 20. org.mozilla.javascript.EcmaError: ReferenceError: "$self" is not defined. (script#1). """ So why does it say that $self is not defined?

Posted in  API  by  Nathaniel Watson
Fri May 20 2016 00:33:55 GMT+0000 (Coordinated Universal Time)
7,423 views
2 comments
What bam files are available for TCGA?

Is there a database available to query for the TCGA bam files?

Posted in  API  by  Richard Finney
Thu Feb 25 2016 23:13:07 GMT+0000 (Coordinated Universal Time)
6,273 views
1 comments
Unauthorized error when accessing files through API

I am attempting to access project output files through the CGC API. I am using the sevenbridges python package. I have run the code provided on the documentation for accessing projects with initialization via environment variables (https://pypi.python.org/pypi/sevenbridges-python). However, an Unauthorized error is returned. I have double checked and the authentication token I am using is correct. What would be the reason for this?

Posted in  API  by  Susanna Chen
Thu Mar 08 2018 19:39:10 GMT+0000 (Coordinated Universal Time)
939 views
1 comments
SVS files are unavailable through the APi

SVS files are availble through the website: https://portal.gdc.cancer.gov/cases/9fe336a8-08a7-4fe7-bf45-afd6a8eb9c75 They are also available on the data portal as of May 21 2018: (same page, click on Files, it leads to data portal. You can see svs files for this case) However issue an API call to: https://cgc-datasets-api.sbgenomics.com/datasets/v0/tcga/cases/9FE336A8-08A7-4FE7-BF45-AFD6A8EB9C75/files No svs files are available.

Posted in  API  by  Maor Maor
Tue Jun 05 2018 09:27:21 GMT+0000 (Coordinated Universal Time)
816 views
6 comments
why there are no nucleotides in the position of the reference genome after the SAMtools Mpileup

H! I have been creating workflow which consists three main steps ( SAMtools View, SAMtools fadix and SAMtools Mpileup). Firstly, with the SAMtools View I filtered the input bam-file based on a bed-file that contains special regions of the third and fifteenth chromosomes. The input bam-file already aligned and sorted I took from the database. The bed-file was download from my computer and the firs line looks like this (3 193593144 193697811). After that the SAMtools Mpileup took file that contain only necessary chromosomes and the file with the indexed reference (as a reference, I used ucsc.hg19.fasta from the database). At the end of the workflow, I expect to see vcf-file with that contains information about the reference and alternative nucleotide of the third and fifteenth chromosomes. Unfortunately, I get the described file, but there are N in place of the reference allele. Please help me understand what is wrong with my reference file

Posted in  API  by  Ekaterina
Mon Oct 15 2018 07:27:42 GMT+0000 (Coordinated Universal Time)
803 views
2 comments
STAR genome generate (2.7.0e) error

Hi, I'm using STAR genome generate and STAR from public apps (both 2.7.0e) to align a human RNA-seq data (uploaded privately) and I'm using GRCh38.primary_assembly.genome.fa and gencode.v32.annotation.gtf as the reference genome and gene annotation file for genome indices generation. I keep getting this error: Command mkdir genomeDir && STAR --runMode genomeGenerate --genomeDir ./genomeDir --runThreadN 20 --genomeChrBinNbits 16 --limitGenomeGenerateRAM 60000000000 --genomeFastaFiles /sbgenomics/workspaces/2bc67190-cbb2-43ba-866b-ca9e77ce024a/tasks/a72a496a-3859-480c-8de1-31c0e332b50e/star_genome_generate_2_7_0e/GRCh38.primary_assembly.genome.fa --sjdbGTFfile /sbgenomics/workspaces/2bc67190-cbb2-43ba-866b-ca9e77ce024a/tasks/a72a496a-3859-480c-8de1-31c0e332b50e/star_genome_generate_2_7_0e/gencode.v32.annotation.gtf && tar -vcf GRCh38.primary_assembly.genome.gencode.v32.annotation.star-2.7.0e-index-archive.tar ./genomeDir && mv Log.out Log.out.log failed with exit code 137. Can someone tell me how to solve this? Thank you!

Posted in  API  by  Jillian Sieh
Mon Dec 09 2019 19:26:09 GMT+0000 (Coordinated Universal Time)
462 views
2 comments
Ask a Question

Categories

  • All Categories
  • API
  • Add your tools
  • General
  • TCGA data on the CGC
  • Upload your private data

Any Questions?

If you don't find an answer to your question, please get in touch. Send us a message at [email protected] or contact @genomicscloud on Twitter.

  • Blog
  • Policies
  • Data Use
  • Terms
  • Contact