HBGDki / ghap

Tools for working on ghap
Other
3 stars 3 forks source link

trouble on `use_study("provide")` #9

Open schloerke opened 7 years ago

schloerke commented 7 years ago

trying to call

use_study("provide")
# inside use_study()
grant_folder
#[1] "ki1017093"  "ki1017093b"

astudies[69:70,] %>% as.data.frame()
#                                                    repo_url study_id
#1 https://vis.apps@git.ghap.io/stash/scm/hbgd/ki1017093b.git  PROVIDE
#2 https://vis.apps@git.ghap.io/stash/scm/hbgd/ki1017093b.git  PROVIDE
#                                      data_path
#1 PROVIDE-201704\\adam\\FULL_PROVIDE_201704.csv
#2 PROVIDE-201704\\adam\\FULL_PROVIDE_201704.csv
#                                          defin_path notes short_id
#1 PROVIDE-201704\\adam\\FULL_PROVIDE_201704_defn.csv  <NA>     prvd
#2 PROVIDE-201704\\adam\\FULL_PROVIDE_201704_defn.csv  <NA>     prvd
#  short_description intervention_type country fstudy_id
#1     PROVIDE Study           Vaccine     BGD   provide
#2     PROVIDE Study           Vaccine     BGD   provide
craiganderson89 commented 7 years ago

I have encountered a similar issue, and I think it is caused by there being two entries for the Provide study in the metadata table. When you call

get_study_list()

the study appears in both row 124 and row 125 of the table produced. Both entries have the same short ID and long ID ("prvd" and "PROVIDE" respectively), which seems to be causing the error. It appears as though the entry in row 124 is obsolete and should be removed.

hafen commented 7 years ago

Yikes sorry I thought I had fixed this but apparently not! I'll fix it.