cBioPortal / cbioportal

cBioPortal for Cancer Genomics
https://cbioportal.org
GNU Affero General Public License v3.0
664 stars 527 forks source link

ClinicalDataViolinPlots axis starts inifinity #11178

Open alisman opened 2 weeks ago

alisman commented 2 weeks ago

curl 'http://localhost:8082/api/column-store/clinical-data-violin-plots/fetch?categoricalAttributeId=CANCER_TYPE&numericalAttributeId=AGE_AT_SEQ_REPORT&logScale=false&sigmaMultiplier=4' -H 'accept: application/json, text/plain, /' -H 'accept-language: en-US,en;q=0.9' -H 'cache-control: no-cache' -H 'content-type: application/json' -H 'cookie: _ga_ET18FDC3P1=GS1.1.1727902893.87.0.1727902893.0.0.0; _gid=GA1.2.1570078648.1728481898; _ga_CKJ2CEEFD8=GS1.1.1728589307.172.1.1728589613.0.0.0; _ga_5260NDGD6Z=GS1.1.1728612388.318.1.1728612389.0.0.0; _gat_gtag_UA_17134933_2=1; _ga=GA1.1.1260093286.1710808634; _ga_334HHWHCPJ=GS1.1.1728647421.32.1.1728647514.0.0.0' -H 'pragma: no-cache' -H 'priority: u=1, i' -H 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "macOS"' -H 'sec-fetch-dest: empty' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' --data-raw '{"studyIds":["genie_public"],"alterationFilter":{"copyNumberAlterationEventTypes":{"AMP":true,"HOMDEL":true},"mutationEventTypes":{"any":true},"includeDriver":true,"includeSomatic":true,"includeUnknownTier":true,"includeGermline":true,"includeUnknownStatus":true,"includeUnknownOncogenicity":true,"includeVUS":true}}';

onursumer commented 2 weeks ago

We get Infinity for only two categories and they both have zero sample count. We may want to filter out zero count categories.

{
    "category": "Malignant Rhabdoid Tumor of the Liver",
    "numSamples": 0,
    "curveData": [],
    "boxData": {
        "whiskerLower": "Infinity",
        "whiskerUpper": "-Infinity",
        "median": 0.0,
        "q1": 0.0,
        "q3": 0.0
    },
    "individualPoints": []
},
{
    "category": "Infantile Fibrosarcoma",
    "numSamples": 0,
    "curveData": [],
    "boxData": {
        "whiskerLower": "Infinity",
        "whiskerUpper": "-Infinity",
        "median": 0.0,
        "q1": 0.0,
        "q3": 0.0
    },
    "individualPoints": []
}