Filtering contigs based on length threshold