I am using a jupyter notebook in Terra.
version 0.2.62
I am in a directory local to the training_pca.ht
Hail Table directory.
trainings = hl.read_table("training_pca.ht")
gives an error HailException: MatrixTable and Table files are directories; path 'training_pca.ht' is not a directory
If I use the full path, then trainings = hl.read_table("file:///home/jupyter/notebooks/AoU_DRC_WGS_LTL_analyses/edit/training_pca.ht")
appears to work:
trainings.describe()
Global fields:
None
----------------------------------------
Row fields:
's': str
'scores': array<float64>
'population_inference.pop': str
'pop_label': str
----------------------------------------
Key: ['s']
----------------------------------------
BUT if I actually try to use it in a calculation:
tmp = trainings.s.collect()
FileNotFoundException: File file:/home/jupyter/notebooks/AoU_DRC_WGS_LTL_analyses/edit/training_pca.ht/rows/parts/part-00-318-0-0-20b62ca5-63fa-b732-6305-2facd6b862b6 does not exist
But this is clearly erroneous, since:
! ls -al /home/jupyter/notebooks/AoU_DRC_WGS_LTL_analyses/edit/training_pca.ht/rows/parts/part-00-318-0-0-20b62ca5-63fa-b732-6305-2facd6b862b6
-rw-r--r-- 1 jupyter users 26311 Jul 13 21:07 /home/jupyter/notebooks/AoU_DRC_WGS_LTL_analyses/edit/training_pca.ht/rows/parts/part-00-318-0-0-20b62ca5-63fa-b732-6305-2facd6b862b6
How should I be specifying local file paths? I believe I am doing the same thing as the reference material. Is the jupyter notebook throwing in an unforeseen complication?