Skip to content

gsutil_cp errors with large vector #43

@LiNk-NY

Description

@LiNk-NY

Hi Martin, @mtmorgan

I am unable to see the error message from gsutil cp -m:
It is somehow cut off.

    gsutil_cp(assayfiles, rpath)
Error: 'gsutil -m cp gs://firecloud-tcga-open-access/tcga/dcc/coad/snp__genome_wide_snp_6__broad_mit_edu__Level_3__segmented_scna_minus_germline_cnv_hg18__seg/broad.mit.edu_COAD.Genome_Wide_SNP_6.Level_3.385.2008.0/TCGA-3L-AA1B-10A-01D-A36Z-01.seg.txt gs://firecloud-tcga-open-access/tcga/dcc/coad/snp__genome_wide_snp_6__broad_mit_edu__Level_3__segmented_scna_minus_germline_cnv_hg18__seg/broad.mit.edu_COAD.Genome_Wide_SNP_6.Level_3.385.2008.0/TCGA-3L-AA1B-01A-11D-A36W-01.seg.txt gs://firecloud-tcga-open-access/tcga/dcc/coad/snp__genome_wide_snp_6__broad_mit_edu__Level_3__segmented_scna_minus_germline_cnv_hg18__seg/broad.mit.edu_COAD.Genome_Wide_SNP_6.Level_3.385.2008.0/TCGA-4N-A93T-10A-01D-A36Z-01.seg.txt gs://firecloud-tcga-open-access/tcga/dcc/coad/snp__genome_wide_snp_6__broad_mit_edu__Level_3__segmented_scna_minus_germline_cnv_hg18__seg/broad.mit.edu_COAD.Genome_Wide_SNP_6.Level_3.385.2008.0/TCGA-4N-A93T-01A-11D-A36W-01.seg.txt gs://firecloud-tcga-open-access/tcga/dcc/coad/snp__geno

The vector assayfiles is of length 918. It works when I break the vector up into three components:

splits <- cut(seq_along(assayfiles), 3, labels = letters[1:3])
lapply(split(assayfiles, splits), gsutil_cp, destination = rpath)

I suspect it has something to do with the length?

Here is a text file, if you'd like to test with the vector:
assayfiles.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions