d603299e387628f3878ff0b783698494f87c602c,scanpy/datasets/_expression_atlas.py,,expression_atlas,#Any#,117

Before Change



    .. _EBI Single Cell Expression Atlas: https://www.ebi.ac.uk/gxa/sc/experiments
    
    if not settings.dataset_dir.is_dir():
        // Log here
        settings.dataset_dir.mkdir()
    experiment_dir = settings.dataset_dir / accession
    if (experiment_dir / f"{accession}.h5ad").is_file():
        adata = anndata.read(experiment_dir / f"{accession}.h5ad")
    else:

After Change


    
    download_experiment(accession)

    print("Downloaded {} to {}".format(accession, experiment_dir.absolute()))

    with ZipFile(experiment_dir / "expression_archive.zip", "r") as f:
        adata = read_expression_from_archive(f)
    obs = pd.read_csv(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: theislab/scanpy
Commit Name: d603299e387628f3878ff0b783698494f87c602c
Time: 2019-03-29
Author: ivirshup@gmail.com
File Name: scanpy/datasets/_expression_atlas.py
Class Name:
Method Name: expression_atlas


Project Name: dmlc/gluon-cv
Commit Name: 2716ec90b5be79d67cb39c46f1182b9827fa60bc
Time: 2020-05-03
Author: 42975160+HieronymusLex@users.noreply.github.com
File Name: scripts/datasets/market1501.py
Class Name:
Method Name: main


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 869e56edc7e3153b534f065e6a73d924ec28bec3
Time: 2020-05-26
Author: tmatsuo@google.com
File Name: vision/automl/edge_container_predict/automl_vision_edge_container_predict_test.py
Class Name:
Method Name: edge_container_predict_server_port