Hi,
I want to plot sample QC metrics and I have a workable python plot script which takes tsv file as input.
In hail0.1 I used: vds.sample_qc().export_samples('output.tsv', 'Sample = s, va.qc.*')
to get suitable tsv.
I want to do the same thing with Hail0.2, I found table.export() but not matrix table.
I am wondering do we have a convenient way to do this?
if you have done step 1), you can save your sample qc into a Hail table and then use table.export(). A clue to this would be using mt.col() in order to get your sample qc into a table.
after I tried: mt = hl.sample_qc(mt, name='sample_qc') table1 = mt.col.sample_qc table1.export('gs://path/table1.tsv.bgz')
It failed in Stage1. Even after I added : --properties spark.speculation=true, when submit job to my gcp cluster
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/lib/spark/jars/slf4j-log4j12-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
Hi It did report red ERROR flag and it report like:
Last 4096 bytes of stderr :
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/lib/spark/jars/slf4j-log4j12-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See SLF4J Error Codes for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
To make sure not the table generating problems. It looks right.
Problem happened in table1.shwo() it report really similar error message. like table1.export()