4 # parses a dbsnp xml file, prints some info for each refsnp and subsnp
11 my $file = shift @ARGV;
13 my $io = Bio
::ClusterIO
->new ( -tempfile
=> 0,
15 -fh
=> IO
::File
->new("zcat $file |"),
18 while(my $cluster = $io->next_cluster){
19 print $cluster->id,"\t", $cluster->observed, "\n";
21 foreach my $subsnp ($cluster->each_subsnp){
22 print "\t\t\t", $subsnp->id, "\t", $subsnp->handle, "\t", $subsnp->method, "\n";