use of edu.sdsc.mmtf.spark.filters.ContainsRnaChain in project mmtf-spark by sbl-sdsc.
the class FilterProteinDnaComplexes method main.
public static void main(String[] args) throws FileNotFoundException {
String path = MmtfReader.getMmtfReducedPath();
SparkConf conf = new SparkConf().setMaster("local[*]").setAppName(FilterProteinDnaComplexes.class.getSimpleName());
JavaSparkContext sc = new JavaSparkContext(conf);
long count = MmtfReader.readSequenceFile(path, // read MMTF hadoop sequence file
sc).filter(// retain pdb entries that contain L-peptide chains
new ContainsLProteinChain()).filter(// retain pdb entries that contain L-Dna chains
new ContainsDnaChain()).filter(// filter out an RNA containing entries
new NotFilter(new ContainsRnaChain())).count();
System.out.println("# L-peptide/DNA complexes: " + count);
sc.close();
}
Aggregations