File[] afs= dd.listFiles();
HashMap<String, GenomicRegion> idreg= new HashMap<>();
ReadTable rt= new ReadTable(pf);
rt.setSkipRows(0);
Table<String> tab= rt.getTable();
for( int i=0; i<tab.getRowNumber(); i++ ){
ArrayList<String> r= tab.getRow(i);
String reg= r.get(9);
if(!reg.equals("")){
GenomicRegion gr= GenomicRegion.parseGenomicRegoinUCSC(reg);
idreg.put(r.get(0), gr);
//System.out.println(r.get(0)+" "+ gr.toUCSCFormat());
}
}
for( int i=0; i<afs.length; i++ ){
File af= afs[i];
if(FileName.getExt(af).equals("txt")){
ReadTable rtaf= new ReadTable(af);
rtaf.setSkipRows(0);
HashMap<String,String> idvals= rtaf.getHashMap(0, 1);
HashMap<String,Double> idval= new HashMap<>();
Iterator<String> it= idvals.keySet().iterator();
while(it.hasNext()){
String id= it.next();
idval.put(id, Double.parseDouble(idvals.get(id)));