remove null elements from test.train.snp list