code: public static Iterable<Contig> parseContigsFromCommandLine(String contigsArgument) {
      return Iterables.transform(Splitter.on(",").split(contigsArgument),
          new Function<String, Contig>() {
            @Override
            public Contig apply(String contigString) {
              ArrayList<String> contigInfo = newArrayList(Splitter.on(":").split(contigString));
              Long start = Long.valueOf(contigInfo.get(1));
              Long end = Long.valueOf(contigInfo.get(2));
              Preconditions.checkArgument(start <= end,
                  "Contig coordinates are incorrectly specified: start " + start + " is greater than end " + end);
              return new Contig(contigInfo.get(0), start, end);
            }
          });
    }
docs: Parse the list of Contigs expressed in the string argument.
  
  The common use case is to parse the value of a command line parameter.
  
  @param contigsArgument - a string expressing the specified contiguous region(s) of the genome.
  The format is chromosome:start:end[,chromosome:start:end]
  @return a list of Contig objects