Skip to content
Snippets Groups Projects
Commit 61fd7d31 authored by tjc's avatar tjc
Browse files

VCF record

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@15157 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 89169447
No related branches found
No related tags found
No related merge requests found
/*
* created: 2010
*
* This file is part of Artemis
*
* Copyright(C) 2010 Genome Research Limited
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or(at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
package uk.ac.sanger.artemis.components.variant;
import java.util.HashMap;
import java.util.Iterator;
class VCFRecord
{
public String alt;
public String ref;
int seqID;
int pos;
float quality;
String info;
String format;
HashMap<String, String> data = new HashMap<String, String>();
public String toString()
{
StringBuffer buff = new StringBuffer();
Iterator<String> it = data.values().iterator();
while(it.hasNext())
buff.append(it.next()+ ( (it.hasNext()) ? ":" : "" ) );
return seqID+"\t"+pos+"\t"+ref+"\t"+alt+"\t"+quality+"\t"+info+"\t"+format+"\t"+buff.toString();
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment