public void convert(String fName) throws IOException{
        TextFile in = new TextFile(fName, false);
        TextFile out = new TextFile(fName.replace(".txt", ".bed"), true);
        GeneNameConverter converter = new GeneNameConverter();
        converter.makeIdToHUGOmap();
        String[] spl;
        String hugo;
        while( (spl = in.readLineElems(TextFile.tab)) != null ){
            hugo = converter.getHugoName(spl[0]);
            if (hugo != null)
            if (id2pos.containsKey(hugo))
                out.writeln(id2pos.get(hugo)+ "\t" + hugo + "\t" + spl[1]);
        }
        in.close();
        out.close();
        
    }