public static JSONObject JSONObjectOfGenomeFromId(JSONArray organizedJson, int id){

		int len = organizedJson.length();
		int i,j,k,l;
		JSONObject json = new JSONObject();
		boolean ok = false;
		for(i = 0; i < len && !ok; i++)
		{
			JSONArray groups = organizedJson.getJSONObject(i).getJSONArray("groups");
			int leng = groups.length();
			for(j = 0; j < leng && !ok; j++)
			{
				JSONArray subgroups = groups.getJSONObject(j).getJSONArray("subgroups");
				int lens = subgroups.length();
				for(k = 0; k < lens && !ok; k++)
				{
					JSONArray genomes = subgroups.getJSONObject(k).getJSONArray("genomes");
					int lenc = genomes.length();
					for(l = 0; l < lenc && !ok; l++)
					{						
						JSONObject genome = genomes.getJSONObject(l);
						if(genome.getInt("genome_id") == id){
							json = genome;
							ok = true;
						}
					}
				}
			}
		}
		
		
		return json;
	}