How can I get data from a DNA Nexus database into another format?

I can create a DNA Nexus database, and confirm that it's present with dx describe. E.g.:   import dxpy db_name = "mydb" mt_name = "my_table" stmt = f"CREATE DATABASE IF NOT EXISTS {db_name} LOCATION 'dnax://'" spark.sql(stmt).show()   db_uri = dxpy.find_one_data_object(name=f"{db_name}", classname="database")['id'] mt_url = f"dnax://{db_uri}/{mt_name}"   # Save Hail MatrixTable (defined elsewhere) to database table mt.write(mt_url)     How can I get this data to be accessible in another format (e.g. tsv) in my project?  

Comments

4 comments

Please sign in to leave a comment.