I'm pretty sure there will be an efetch/elink approach to get that info but unfortunately I'm not a good enough user of those, so we'll have to wait for some else to way in here.
Not sure why you threw in blastn in this question? how does that comes into play here? if you have the IDs you can work with those.
I mentioned blastn because it has many options for retrieving codes, such as qseqid sseqid staxids sscinames. I thought it could retrieve also family names.
with blastn you will indeed be able to select the species name where the sequence belongs to (given that you use one of the newer version of blast and a recent updated blastDB) and even other taxonomic info (with the latest DB update that is), not sure however if you can request the level you want based on the info you have.
You can't get family information directly from blastn outfmt custom options. The closest alternative would be to get the staxids of hits and then use Entrezdirect to get the family information.
I'm pretty sure there will be an efetch/elink approach to get that info but unfortunately I'm not a good enough user of those, so we'll have to wait for some else to way in here.
Not sure why you threw in blastn in this question? how does that comes into play here? if you have the IDs you can work with those.
I mentioned blastn because it has many options for retrieving codes, such as qseqid sseqid staxids sscinames. I thought it could retrieve also family names.
Ah, ok, yes I can see how you got to that.
with blastn you will indeed be able to select the species name where the sequence belongs to (given that you use one of the newer version of blast and a recent updated blastDB) and even other taxonomic info (with the latest DB update that is), not sure however if you can request the level you want based on the info you have.